Свойство | Тип | Описание | |
---|---|---|---|
HBMMENU_CALLBACK | |||
HBMMENU_MBAR_CLOSE | |||
HBMMENU_MBAR_CLOSE_D | |||
HBMMENU_MBAR_MINIMIZE | |||
HBMMENU_MBAR_MINIMIZE_D | |||
HBMMENU_MBAR_RESTORE | |||
HBMMENU_POPUP_CLOSE | |||
HBMMENU_POPUP_MAXIMIZE | |||
HBMMENU_POPUP_MINIMIZE | |||
HBMMENU_POPUP_RESTORE | |||
HBMMENU_SYSTEM | |||
HWND_BROADCAST |
Метод | Описание | |
---|---|---|
BeginPaint ( |
The BeginPaint function prepares the specified window for painting and fills a PAINTSTRUCT structure with information about the painting. The BeginPaint function automatically sets the clipping region of the device context to exclude any area outside the update region. The update region is set by the InvalidateRect or InvalidateRgn function and by the system after sizing, moving, creating, scrolling, or any other operation that affects the client area. If the update region is marked for erasing, BeginPaint sends a WindowMessage.WM_ERASEBKGND message to the window. An application should not call BeginPaint except in response to a WindowMessage.WM_PAINT message. Each call to BeginPaint must have a corresponding call to the EndPaint(IntPtr, PAINTSTRUCT*) function. If the caret is in the area to be painted, BeginPaint automatically hides the caret to prevent it from being erased. If the window's class has a background brush, BeginPaint uses that brush to erase the background of the update region before returning. |
|
CreateWindow ( string lpClassName, string lpWindowName, WindowStyles dwStyle, int x, int y, int nWidth, int nHeight, |
The CreateWindow is identical to the CreateWindowEx function, actually it is a macro on C/C++
|
|
GetClassName ( |
Retrieves the name of the class to which the specified window belongs. The suggested class name length is 256 as we didn't find any reference of class name length limits |
|
GetClipboardFormatName ( int format ) : string |
Retrieves from the clipboard the name of the specified registered format.
|
|
GetCursorPos ( ) : PInvoke.POINT |
Retrieves the position of the mouse cursor, in screen coordinates.
|
|
GetDC ( |
The GetDC function retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen. You can use the returned handle in subsequent GDI functions to draw in the DC. The device context is an opaque data structure, whose values are used internally by GDI. The GetDCEx function is an extension to GetDC, which gives an application more control over how and whether clipping occurs in the client area.
|
|
GetDCEx ( |
The GetDCEx function retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen. You can use the returned handle in subsequent GDI functions to draw in the DC. The device context is an opaque data structure, whose values are used internally by GDI. This function is an extension to the GetDC function, which gives an application more control over how and whether clipping occurs in the client area. Unless the display DC belongs to a window class, the ReleaseDC function must be called to release the DC after painting. Also, ReleaseDC must be called from the same thread that called GetDCEx. The number of DCs is limited only by available memory. The function returns a handle to a DC that belongs to the window's class if CS_CLASSDC, CS_OWNDC or CS_PARENTDC was specified as a style in the WNDCLASS structure when the class was registered. |
|
GetWindowDC ( |
The GetWindowDC function retrieves the device context (DC) for the entire window, including title bar, menus, and scroll bars. A window device context permits painting anywhere in a window, because the origin of the device context is the upper-left corner of the window instead of the client area. GetWindowDC assigns default attributes to the window device context each time it retrieves the device context. Previous attributes are lost. GetWindowDC is intended for special painting effects within a window's nonclient area. Painting in nonclient areas of any window is not recommended. The GetSystemMetrics function can be used to retrieve the dimensions of various parts of the nonclient area, such as the title bar, menu, and scroll bars. The GetDC function can be used to retrieve a device context for the entire screen. After painting is complete, the ReleaseDC function must be called to release the device context. Not releasing the window device context has serious effects on painting requested by applications. |
|
GetWindowPlacement ( |
Retrieves the show state and the restored, minimized, and maximized positions of the specified window.
|
|
GetWindowText ( |
Get the text of the specified window's title bar (if it has one). If the specified window is a control, the text of the control is returned. However, GetWindowText cannot retrieve the text of a control in another application.
|
Метод | Описание | |
---|---|---|
AppendMenu ( |
||
BeginPaint_IntPtr ( |
||
CallNextHookEx ( |
||
ChildWindowFromPoint ( |
||
ChildWindowFromPointEx ( |
||
ClientToScreen ( |
||
CloseClipboard ( ) : bool | ||
CloseDesktop ( |
||
CloseWindowStation ( |
||
CreateDesktop ( string lpszDesktop, string lpszDevice, |
||
CreateDesktopEx ( string lpszDesktop, |
||
CreateDialogIndirectParam ( SafeLibraryHandle hInstance, DLGTEMPLATE lpTemplate, |
||
CreateWindowEx ( WindowStylesEx dwExStyle, string lpClassName, string lpWindowName, WindowStyles dwStyle, int x, int y, int nWidth, int nHeight, |
||
CreateWindowStation ( string lpwinsta, WindowStationCreationFlags dwFlags, ACCESS_MASK dwDesiredAccess, [ lpsa ) : SafeWindowStationHandle | ||
DefWindowProc ( |
||
DispatchMessage ( MSG lpMsg ) : |
||
DrawText ( SafeDCHandle hDC, [ lpString, int nCount, [ lpRect, TextFormats uFormat ) : int | ||
DrawTextEx ( SafeDCHandle hdc, [ lpchText, int cchText, [ lprc, uint dwDTFormat, [ lpDTParams ) : int | ||
EmptyClipboard ( ) : bool | ||
EndPaint ( |
||
EnumDesktopWindows ( SafeDesktopHandle hDesktop, WNDENUMPROC lpfn, |
||
EnumDesktops ( SafeWindowStationHandle hWinsta, DESKTOPENUMPROC lpEnumFunc, |
||
EnumDisplayMonitors ( |
||
EnumWindowStations ( WINSTAENUMPROC lpEnumFunc, |
||
EnumWindows ( WNDENUMPROC lpEnumFunc, |
||
FindWindow ( string lpClassName, string lpWindowName ) : |
||
FindWindowEx ( |
||
FlashWindowEx ( FLASHWINFO &pwfi ) : bool | ||
GetActiveWindow ( ) : |
||
GetAncestor ( |
||
GetAsyncKeyState ( VirtualKey vKey ) : short | ||
GetClassInfoEx ( |
||
GetClassName ( |
||
GetClientRect ( |
||
GetClipboardData ( int uFormat ) : void* | ||
GetClipboardFormatName ( int format, [ lpszFormatName, int cchMaxCount ) : int | ||
GetCursorPos ( PInvoke.POINT &lpPoint ) : bool | ||
GetDCEx_IntPtr ( |
||
GetDC_IntPtr ( |
||
GetDesktopWindow ( ) : |
||
GetForegroundWindow ( ) : |
||
GetKeyState ( VirtualKey vKey ) : short | ||
GetMenuItemInfo ( |
||
GetMessage ( MSG lpMsg, |
||
GetMonitorInfo ( |
||
GetMonitorInfoEx ( |
||
GetProcessWindowStation ( ) : SafeWindowStationHandle | ||
GetQueueStatus ( QueueStatusFlags flags ) : int | ||
GetShellWindow ( ) : |
||
GetSystemMenu ( |
||
GetSystemMetrics ( SystemMetric smIndex ) : int | ||
GetThreadDesktop ( uint dwThreadId ) : SafeDesktopHandle | ||
GetUserObjectInformation ( |
||
GetWindowDC_IntPtr ( |
||
GetWindowDisplayAffinity ( |
||
GetWindowInfo ( |
||
GetWindowLong ( |
||
GetWindowPlacement ( |
||
GetWindowRect ( |
||
GetWindowText ( |
||
GetWindowTextLength ( |
||
GetWindowThreadProcessId ( |
||
IsChild ( |
||
IsDialogMessage ( |
||
IsGUIThread ( [ bConvert ) : HResult | ||
IsHungAppWindow ( |
||
IsIconic ( |
||
IsProcessDPIAware ( ) : bool | ||
IsWindow ( |
||
IsWindowUnicode ( |
||
IsWindowVisible ( |
||
IsZoomed ( |
||
LoadCursor ( |
||
LoadIcon ( |
||
LoadIcon ( |
||
LoadString ( |
||
LogicalToPhysicalPoint ( |
||
LogicalToPhysicalPointForPerMonitorDPI ( |
||
LookupIconIdFromDirectory ( byte presbits, [ fIcon ) : int | ||
LookupIconIdFromDirectoryEx ( byte presbits, [ fIcon, int cxDesired, int cyDesired, LookupIconIdFromDirectoryExFlags Flags ) : int | ||
MapVirtualKey ( int uCode, MapVirtualKeyTranslation uMapType ) : int | ||
MapWindowPoints ( |
||
MessageBeep ( MessageBeepType uType ) : bool | ||
MessageBox ( |
||
MessageBoxIndirect ( MSGBOXPARAMS &lpMsgBoxParams ) : int | ||
MonitorFromPoint ( PInvoke.POINT pt, MonitorOptions dwFlags ) : |
||
MonitorFromPoint ( PInvoke.POINT point, int flags ) : |
||
MonitorFromRect ( |
||
MonitorFromWindow ( |
||
MoveWindow ( |
||
OpenClipboard ( |
||
OpenDesktop ( string lpszDesktop, DesktopCreationFlags dwFlags, [ fInherit, ACCESS_MASK dwDesiredAccess ) : SafeDesktopHandle | ||
OpenInputDesktop ( DesktopCreationFlags dwFlags, [ fInherit, ACCESS_MASK dwDesiredAccess ) : SafeDesktopHandle | ||
OpenWindowStation ( string lpszWinSta, [ fInherit, ACCESS_MASK dwDesiredAccess ) : SafeWindowStationHandle | ||
PeekMessage ( MSG lpMsg, |
||
PhysicalToLogicalPoint ( |
||
PhysicalToLogicalPointForPerMonitorDPI ( |
||
PostMessage ( |
||
PostQuitMessage ( int nExitCode ) : void | ||
PostThreadMessage ( int idThread, WindowMessage Msg, |
||
PrintWindow ( |
||
QueryDisplayConfig ( uint Flags, int &pNumPathArrayElements, [ pPathInfoArray, int &pNumModeInfoArrayElements, [ pModeInfoArray, [ pCurrentTopologyId ) : int | ||
RealChildWindowFromPoint ( |
||
RealGetWindowClass ( |
||
RegisterClass ( WNDCLASS &lpWndClass ) : ushort | ||
RegisterClassEx ( WNDCLASSEX &lpwcx ) : short | ||
RegisterWindowMessage ( string lpString ) : int | ||
ReleaseCapture ( ) : bool | ||
ReleaseDC ( |
||
ScreenToClient ( |
||
SendInput ( int nInputs, [ pInputs, int cbSize ) : uint | ||
SendMessage ( |
||
SetCapture ( |
||
SetClipboardData ( int uFormat, void hMem ) : void* | ||
SetCursorPos ( int X, int Y ) : bool | ||
SetForegroundWindow ( |
||
SetMenuItemInfo ( |
||
SetParent ( |
||
SetProcessDPIAware ( ) : bool | ||
SetProcessWindowStation ( SafeWindowStationHandle hWinSta ) : bool | ||
SetThreadDesktop ( SafeDesktopHandle hDesktop ) : bool | ||
SetWinEventHook ( WindowsEventHookType eventMin, WindowsEventHookType eventMax, |
||
SetWinEventHook ( WindowsEventHookType eventMin, WindowsEventHookType eventMax, |
||
SetWindowDisplayAffinity ( |
||
SetWindowLong ( |
||
SetWindowPlacement ( |
||
SetWindowPos ( |
||
SetWindowsHookEx ( WindowsHookType idHook, |
||
SetWindowsHookEx ( WindowsHookType idHook, WindowsHookDelegate lpfn, |
||
ShowWindow ( |
||
SwitchDesktop ( SafeDesktopHandle hDesktop ) : bool | ||
SystemParametersInfo ( SystemParametersInfoAction uiAction, uint uiParam, void pvParam, SystemParametersInfoFlags fWinIni ) : bool | ||
TranslateMessage ( MSG lpMsg ) : bool | ||
UnhookWinEvent ( |
||
UnhookWindowsHookEx ( |
||
UpdateWindow ( |
||
WaitForInputIdle ( |
||
WindowFromPhysicalPoint ( PInvoke.POINT pt ) : |
||
WindowFromPoint ( PInvoke.POINT Point ) : |
||
keybd_event ( byte bVk, byte bScan, KEYEVENTF dwFlags, void dwExtraInfo ) : void |
public static BeginPaint ( |
||
hwnd | Handle to the window to be repainted. | |
lpPaint | [ | Pointer to the |
Результат | SafeDCHandle |
public static CreateWindow ( string lpClassName, string lpWindowName, WindowStyles dwStyle, int x, int y, int nWidth, int nHeight, |
||
lpClassName | string | /// Pointer to a null-terminated string or a class atom created by a previous call to the /// RegisterClass or RegisterClassEx function. The atom must be in the low-order word of /// lpClassName; the high-order word must be zero. If lpClassName is a string, it specifies /// the window class name. The class name can be any name registered with RegisterClass or /// RegisterClassEx, provided that the module that registers the class is also the module /// that creates the window. The class name can also be any of the predefined system class names. /// |
lpWindowName | string | /// Pointer to a null-terminated string that specifies the window name. If the window style /// specifies a title bar, the window title pointed to by lpWindowName is displayed in the /// title bar. When using CreateWindow to create controls, such as buttons, check boxes, and /// static controls, use lpWindowName to specify the text of the control. When creating a /// static control with the SS_ICON style, use lpWindowName to specify the icon name or /// identifier. To specify an identifier, use the syntax "#num". /// |
dwStyle | WindowStyles | /// Specifies the style of the window being created. This parameter can be a combination of /// window styles, plus the control styles indicated in the Remarks section. /// |
x | int | /// Specifies the initial horizontal position of the window. For an overlapped or pop-up /// window, the x parameter is the initial x-coordinate of the window's upper-left corner, in /// screen coordinates. For a child window, x is the x-coordinate of the upper-left corner of /// the window relative to the upper-left corner of the parent window's client area. If x is /// set to CW_USEDEFAULT, the system selects the default position for the window's upper-left /// corner and ignores the y parameter. CW_USEDEFAULT is valid only for overlapped windows; /// if it is specified for a pop-up or child window, the x and y parameters are set to zero. /// |
y | int |
/// Specifies the initial vertical position of the window. For an overlapped or pop-up
/// window, the y parameter is the initial y-coordinate of the window's upper-left corner, in
/// screen coordinates. For a child window, y is the initial y-coordinate of the upper-left
/// corner of the child window relative to the upper-left corner of the parent window's
/// client area. For a list box y is the initial y-coordinate of the upper-left corner of the
/// list box's client area relative to the upper-left corner of the parent window's client area.
/// |
nWidth | int | /// Specifies the width, in device units, of the window. For overlapped windows, nWidth is /// the window's width, in screen coordinates, or CW_USEDEFAULT. If nWidth is CW_USEDEFAULT, /// the system selects a default width and height for the window; the default width extends /// from the initial x-coordinates to the right edge of the screen; the default height /// extends from the initial y-coordinate to the top of the icon area. CW_USEDEFAULT is valid /// only for overlapped windows; if CW_USEDEFAULT is specified for a pop-up or child window, /// the nWidth and nHeight parameter are set to zero. /// |
nHeight | int | /// Specifies the height, in device units, of the window. For overlapped windows, nHeight is /// the window's height, in screen coordinates. If the nWidth parameter is set to /// CW_USEDEFAULT, the system ignores nHeight. /// |
hWndParent |
/// Handle to the parent or owner window of the window being created. To create a child
/// window or an owned window, supply a valid window handle. This parameter is optional for
/// pop-up windows.
/// |
|
hMenu | /// Handle to a menu, or specifies a child-window identifier, depending on the window style. /// For an overlapped or pop-up window, hMenu identifies the menu to be used with the window; /// it can be NULL if the class menu is to be used. For a child window, hMenu specifies the /// child-window identifier, an integer value used by a dialog box control to notify its /// parent about events. The application determines the child-window identifier; it must be /// unique for all child windows with the same parent window. /// | |
hInstance | /// Handle to the instance of the module to be associated with the window. /// | |
lpParam | void |
/// Pointer to a value to be passed to the window through the CREATESTRUCT structure
/// (lpCreateParams member) pointed to by the lParam param of the WM_CREATE message. This
/// message is sent to the created window by this function before it returns.
/// |
Результат |
public static GetClassName ( |
||
hWnd | A handle to the window and, indirectly, the class to which the window belongs. | |
maxLength | int | The size of the string to return |
Результат | string |
public static GetClipboardFormatName ( int format ) : string | ||
format | int | The type of format to be retrieved. This parameter must not specify any of the predefined clipboard formats. |
Результат | string |
public static GetCursorPos ( ) : PInvoke.POINT | ||
Результат | PInvoke.POINT |
public static GetDC ( |
||
hWnd | A handle to the window whose DC is to be retrieved. If this value is NULL, GetDC retrieves the DC for the entire screen. | |
Результат | SafeDCHandle |
public static GetDCEx ( |
||
hWnd | A handle to the window whose DC is to be retrieved. If this value is |
|
hrgnClip |
/// A clipping region that may be combined with the visible region of the DC.
/// If the value of flags is |
|
flags | DeviceContextValues | Specifies how the DC is created. |
Результат | SafeDCHandle |
public static GetWindowDC ( |
||
hWnd |
/// A handle to the window with a device context that is to be retrieved. If this value is |
|
Результат | SafeDCHandle |
public static GetWindowPlacement ( |
||
hWnd | A handle to the window. | |
Результат | WINDOWPLACEMENT |
public static GetWindowText ( |
||
hWnd | A handle to the window or control containing the text. | |
Результат | string |
public static IntPtr,System HBMMENU_CALLBACK | ||
Результат |
public static IntPtr,System HBMMENU_MBAR_CLOSE | ||
Результат |
public static IntPtr,System HBMMENU_MBAR_CLOSE_D | ||
Результат |
public static IntPtr,System HBMMENU_MBAR_MINIMIZE | ||
Результат |
public static IntPtr,System HBMMENU_MBAR_MINIMIZE_D | ||
Результат |
public static IntPtr,System HBMMENU_MBAR_RESTORE | ||
Результат |
public static IntPtr,System HBMMENU_POPUP_CLOSE | ||
Результат |
public static IntPtr,System HBMMENU_POPUP_MAXIMIZE | ||
Результат |
public static IntPtr,System HBMMENU_POPUP_MINIMIZE | ||
Результат |
public static IntPtr,System HBMMENU_POPUP_RESTORE | ||
Результат |
public static IntPtr,System HBMMENU_SYSTEM | ||
Результат |