C# Класс Support.UI.Win32

This class allows for access to win32 functionality that is not directly supported in .NET (hiding/showing the console)
Показать файл Открыть проект

Открытые методы

Метод Описание
GetRichTextScrollPosition ( IntPtr HANDLE ) : Point
SetRedraw ( IntPtr HANDLE, bool bRedraw ) : void
SetRichTextScrollPosition ( IntPtr HANDLE, Point pLocation ) : void
ShowConsole ( string sConsoleTitle, bool bShow ) : void

Used to show/hide the console window in console enabled applications. The Console will flicker on at startup.

ShowInactiveTopmost ( IntPtr nFormHandle, int nLeft, int nTop, int nWidth, int nHeight ) : void
ShowTopmost ( IntPtr nFormHandle ) : void

Приватные методы

Метод Описание
FindWindow ( string lpClassName, string lpWindowName ) : int
SendMessage ( IntPtr hWnd, int msg, IntPtr wp, IntPtr lp ) : IntPtr
SendMessage ( IntPtr hWnd, int msg, IntPtr wp, Point &lp ) : IntPtr
SetConsoleTitle ( string sConsoleTitle ) : bool
SetForegroundWindow ( int hWnd ) : Int32
SetWindowPos ( int hWnd, int hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags ) : bool
ShowWindow ( int hwnd, int nCmdShow ) : int
ShowWindow ( string sName, bool bShow ) : void

Used to show/hide windows by their title.

Win32 ( ) : System

Описание методов

GetRichTextScrollPosition() публичный статический Метод

public static GetRichTextScrollPosition ( IntPtr HANDLE ) : Point
HANDLE System.IntPtr
Результат Point

SetRedraw() публичный статический Метод

public static SetRedraw ( IntPtr HANDLE, bool bRedraw ) : void
HANDLE System.IntPtr
bRedraw bool
Результат void

SetRichTextScrollPosition() публичный статический Метод

public static SetRichTextScrollPosition ( IntPtr HANDLE, Point pLocation ) : void
HANDLE System.IntPtr
pLocation Point
Результат void

ShowConsole() публичный статический Метод

Used to show/hide the console window in console enabled applications. The Console will flicker on at startup.
public static ShowConsole ( string sConsoleTitle, bool bShow ) : void
sConsoleTitle string A unique name for this instance of the console
bShow bool Flag indicating whether to show or hide the console
Результат void

ShowInactiveTopmost() публичный статический Метод

public static ShowInactiveTopmost ( IntPtr nFormHandle, int nLeft, int nTop, int nWidth, int nHeight ) : void
nFormHandle System.IntPtr
nLeft int
nTop int
nWidth int
nHeight int
Результат void

ShowTopmost() публичный статический Метод

public static ShowTopmost ( IntPtr nFormHandle ) : void
nFormHandle System.IntPtr
Результат void