C# Класс Alsing.Windows.NativeMethods

Показать файл Открыть проект

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

Метод Описание
ColorToInt ( Color color ) : int
ControlDC ( Control control ) : IntPtr
IntToColor ( int color ) : Color
IsKeyPressed ( Keys k ) : bool

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

Метод Описание
BitBlt ( IntPtr hDestDC, int x, int y, int nWidth, int nHeight, IntPtr hSrcDC, int xSrc, int ySrc, int dwRop ) : IntPtr
CloseThemeData ( IntPtr hTheme ) : IntPtr
CreateCompatibleBitmap ( IntPtr hDC, int nWidth, int nHeight ) : IntPtr
CreateCompatibleDC ( IntPtr hDC ) : IntPtr
CreateFontIndirect ( [ LogFont ) : IntPtr
CreateHatchBrush ( int Style, int crColor ) : IntPtr
CreatePatternBrush ( IntPtr hBMP ) : IntPtr
CreatePen ( int nPenStyle, int nWidth, int crColor ) : IntPtr
CreateSolidBrush ( int crColor ) : IntPtr
DeleteDC ( IntPtr hDC ) : IntPtr
DeleteObject ( IntPtr hObject ) : IntPtr
DrawFocusRect ( IntPtr hDC, APIRect &rect ) : int
DrawText ( IntPtr hDC, string lpString, int nCount, APIRect &Rect, int wFormat ) : int
DrawThemeBackground ( IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, APIRect &rect, APIRect &clipRect ) : int
DrawThemeText ( IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, string pszText, int iCharCount, uint dwTextFlags, uint dwTextFlags2, [ rect ) : int
EnumFontFamiliesEx ( IntPtr hDC, [ lf, FONTENUMPROC proc, System.Int64 LParam, System.Int64 DW ) : int
FillRect ( IntPtr hDC, APIRect &rect, IntPtr hBrush ) : int
GdiFlush ( ) : IntPtr
GetAsyncKeyState ( int vKey ) : UInt16
GetBkColor ( IntPtr hDC ) : int
GetBkMode ( IntPtr hDC ) : int
GetDC ( IntPtr hWND ) : IntPtr
GetDesktopWindow ( ) : IntPtr
GetTabbedTextExtent ( IntPtr hDC, string lpString, int nCount, int nTabPositions, int &lpnTabStopPositions ) : int
GetTextColor ( IntPtr hDC ) : int
GetTextFace ( IntPtr hDC, int nCount, string lpFacename ) : int
GetTextMetrics ( IntPtr hDC, GDITextMetric &TextMetric ) : int
GetThemeColor ( IntPtr hTheme, int iPartId, int iStateId, int iPropId, ulong &color ) : int
GetWindowDC ( IntPtr hWND ) : IntPtr
GetWindowRect ( IntPtr hWND, APIRect &Rect ) : IntPtr
ImmGetDefaultIMEWnd ( IntPtr hWnd ) : IntPtr
InvertRect ( IntPtr hDC, APIRect &rect ) : int
IsThemeActive ( ) : bool
LineTo ( IntPtr hDC, int x, int y ) : IntPtr
MoveToEx ( IntPtr hDC, int x, int y, APIPoint &lpPoint ) : IntPtr
OpenThemeData ( IntPtr hwnd, [ pszClassList ) : IntPtr
Rectangle ( IntPtr hDC, int left, int top, int right, int bottom ) : int
ReleaseCapture ( ) : bool
ReleaseDC ( IntPtr hWND, IntPtr hDC ) : IntPtr
SHAutoComplete ( IntPtr hWnd, UInt32 flags ) : int
SelectObject ( IntPtr hDC, IntPtr hObject ) : IntPtr
SendMessage ( IntPtr hWnd, int msg, int wParam, COMPOSITIONFORM lParam ) : int
SendMessage ( IntPtr hWnd, int msg, int wParam, LogFont lParam ) : int
SendMessage ( IntPtr hWND, int message, int WParam, int LParam ) : int
SetBkColor ( IntPtr hDC, int crColor ) : int
SetBkMode ( IntPtr hDC, int Mode ) : int
SetBrushOrgEx ( IntPtr hDC, int x, int y, APIPoint &p ) : int
SetTextColor ( IntPtr hDC, int crColor ) : int
SetWindowLong ( IntPtr hWnd, int nIndex, int dwNewLong ) : int
ShowWindow ( IntPtr hWnd, short cmdShow ) : int
TabbedTextOut ( IntPtr hDC, int x, int y, string lpString, int nCount, int nTabPositions, int &lpnTabStopPositions, int nTabOrigin ) : int

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

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

public static ColorToInt ( Color color ) : int
color Color
Результат int

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

public static ControlDC ( Control control ) : IntPtr
control System.Windows.Forms.Control
Результат System.IntPtr

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

public static IntToColor ( int color ) : Color
color int
Результат Color

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

public static IsKeyPressed ( Keys k ) : bool
k Keys
Результат bool