C# Class Nomad.Utils.Win32

Mostra file Open project: Azerothian/fc3editor Class Usage Examples

Public Methods

Method Description
GetPrivateProfileStringW ( string lpAppName, string lpKeyName, string lpDefault, string &lpReturnedString, string lpFileName ) : void
GetUserNameEx ( Win32 NameFormat ) : string
HiWord ( int dw ) : int
IsKeyDown ( int nVirtKey ) : bool
LoWord ( int dw ) : int
MakeLong ( int lw, int hw ) : int
SetRedraw ( Control control, bool redraw ) : void
UpdateLayeredWindowHelper ( Control control, Bitmap bmp ) : void

Private Methods

Method Description
CreateCaret ( IntPtr hWnd, IntPtr hBitmap, int nWidth, int nHeight ) : bool
CreateCompatibleDC ( IntPtr hdc ) : IntPtr
CreatePen ( int fnPenStyle, int nWidth, uint crColor ) : IntPtr
CreateSolidBrush ( int crColor ) : IntPtr
DeleteDC ( IntPtr hdc ) : bool
DeleteObject ( IntPtr hObject ) : bool
DestroyCaret ( ) : bool
DispatchMessage ( Win32 &msg ) : bool
DrawTextEx ( IntPtr hdc, string lpchText, int cchText, Win32 &lprc, uint dwDTFormat, [ lpDTParams ) : int
EnumWindows ( Win32 ewp, IntPtr lParam ) : int
FillRect ( IntPtr hDC, Win32 &lprc, IntPtr hbr ) : int
GetActiveWindow ( ) : IntPtr
GetCapture ( ) : IntPtr
GetCaretPos ( Win32 &pt ) : void
GetCharABCWidths ( IntPtr hdc, uint uFirstChar, uint uLastChar, [ lpabc ) : bool
GetDC ( IntPtr hWnd ) : IntPtr
GetKeyState ( int nVirtKey ) : ushort
GetKeyboardLayout ( int idThread ) : IntPtr
GetMessage ( Win32 &msg, IntPtr hWnd, int wMsgFilterMin, int wMsgFilterMax ) : bool
GetParent ( IntPtr hWnd ) : IntPtr
GetPrivateProfileStringW ( [ lpAppName, [ lpKeyName, [ lpDefault, IntPtr lpReturnedString, int nSize, [ lpFileName ) : void
GetProp ( IntPtr hWnd, string lpString ) : IntPtr
GetScrollInfo ( IntPtr hWnd, int nBar, [ scrollInfo ) : int
GetTextExtentExPoint ( IntPtr hdc, string lpszStr, int cchString, int nMaxExtent, int &lpnFit, IntPtr alpDx, Win32 &lpSize ) : bool
GetTextMetrics ( IntPtr hdc, Win32 &lptm ) : bool
GetUserNameExW ( Win32 NameFormat, IntPtr lpNameBuffer, uint &nSize ) : int
GetWindowLong ( IntPtr hWnd, int nIndex ) : uint
HideCaret ( IntPtr hWnd ) : bool
IsChild ( IntPtr hWndParent, IntPtr hWnd ) : bool
IsWindowEnabled ( IntPtr hWnd ) : bool
MapVirtualKeyEx ( int uCode, int uMapType, IntPtr dwhkl ) : int
MapWindowPoints ( IntPtr hWndFrom, IntPtr hWndTo, Win32 &pt, int cPoints ) : int
PostMessage ( IntPtr hWnd, int msg, int wParam, int lParam ) : bool
RedrawWindow ( IntPtr hWnd, IntPtr lprcUpdate, IntPtr hrgnUpdate, int flags ) : bool
ReleaseCapture ( ) : void
ReleaseDC ( IntPtr hWnd, IntPtr hDC ) : int
RemoveProp ( IntPtr hWnd, string lpString ) : IntPtr
RtlMoveMemory ( IntPtr dest, IntPtr src, int size ) : void
ScrollWindowEx ( IntPtr hWnd, int dx, int dy, Win32 &prcScroll, Win32 &prcClip, IntPtr hrgnUpdate, IntPtr prcUpdate, int flags ) : int
SelectObject ( IntPtr hdc, IntPtr hgdiobj ) : IntPtr
SendMessage ( IntPtr hWnd, int msg, int wParam, Win32 &lParam ) : int
SendMessage ( IntPtr hWnd, int msg, int wParam, int lParam ) : int
SetBkColor ( IntPtr hdc, int crColor ) : int
SetCapture ( IntPtr hWnd ) : void
SetCaretPos ( int x, int y ) : bool
SetForegroundWindow ( IntPtr hWnd ) : bool
SetProp ( IntPtr hWnd, string lpString, IntPtr hData ) : bool
SetScrollInfo ( IntPtr hWnd, int nBar, [ scrollInfo, bool bRedraw ) : int
SetScrollPos ( IntPtr hWnd, int nBar, int nPos, bool bRedraw ) : int
SetTextColor ( IntPtr hdc, int crColor ) : int
SetWindowLong ( IntPtr hWnd, int nIndex, uint dwNewLong ) : uint
SetWindowPos ( IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags ) : bool
ShowCaret ( IntPtr hWnd ) : bool
ShowWindow ( IntPtr hWnd, int nCmdShow ) : bool
TranslateMessage ( Win32 &msg ) : bool
UpdateLayeredWindow ( IntPtr hwnd, IntPtr hdcDst, Win32 &pptDst, Win32 &psize, IntPtr hdcSrc, Win32 &pptSrc, int crKey, Win32 &pblend, int dwFlags ) : bool

Method Details

GetPrivateProfileStringW() public static method

public static GetPrivateProfileStringW ( string lpAppName, string lpKeyName, string lpDefault, string &lpReturnedString, string lpFileName ) : void
lpAppName string
lpKeyName string
lpDefault string
lpReturnedString string
lpFileName string
return void

GetUserNameEx() public static method

public static GetUserNameEx ( Win32 NameFormat ) : string
NameFormat Win32
return string

HiWord() public static method

public static HiWord ( int dw ) : int
dw int
return int

IsKeyDown() public static method

public static IsKeyDown ( int nVirtKey ) : bool
nVirtKey int
return bool

LoWord() public static method

public static LoWord ( int dw ) : int
dw int
return int

MakeLong() public static method

public static MakeLong ( int lw, int hw ) : int
lw int
hw int
return int

SetRedraw() public static method

public static SetRedraw ( Control control, bool redraw ) : void
control Control
redraw bool
return void

UpdateLayeredWindowHelper() public static method

public static UpdateLayeredWindowHelper ( Control control, Bitmap bmp ) : void
control Control
bmp Bitmap
return void