C# Class Support.UI.Win32

This class allows for access to win32 functionality that is not directly supported in .NET (hiding/showing the console)
Exibir arquivo Open project: nhmkdev/cardmaker

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

GetRichTextScrollPosition() public static method

public static GetRichTextScrollPosition ( IntPtr HANDLE ) : Point
HANDLE System.IntPtr
return Point

SetRedraw() public static method

public static SetRedraw ( IntPtr HANDLE, bool bRedraw ) : void
HANDLE System.IntPtr
bRedraw bool
return void

SetRichTextScrollPosition() public static method

public static SetRichTextScrollPosition ( IntPtr HANDLE, Point pLocation ) : void
HANDLE System.IntPtr
pLocation Point
return void

ShowConsole() public static method

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
return void

ShowInactiveTopmost() public static method

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
return void

ShowTopmost() public static method

public static ShowTopmost ( IntPtr nFormHandle ) : void
nFormHandle System.IntPtr
return void