WinApi Class

Provides Windows Operative System specific functionallity.

Definition

Namespace: PCB_Investigator.PCBIControls.Ribbon.RibbonHelpers
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 16
C#
public static class WinApi
Inheritance
Object    WinApi

Properties

IsGlassEnabled Gets if computer is glass capable and enabled
IsVista Gets a value indicating if operating system is vista or higher
IsWindows Gets if the current OS is Windows NT or later
IsXP Gets a value indicating if operating system is xp or higher

Methods

DrawTextOnGlass Draws theme text on glass.
FillForGlass Fills an area for glass rendering
FindWindow 
GetDCEx 
GetWindowRect 
HiWord Equivalent to the HiWord C Macro
InvalidateNC Invalidates non-client area
InvalidateWindow 
LoWord Equivalent to the LoWord C Macro
MakeLParam Equivalent to the MakeLParam C Macro
PostMessage Sends the specified message to a window or windows

Fields

BI_RGB An uncompressed format.
CS_DROPSHADOW Enables the drop shadow effect on a window
DIB_RGB_COLORS The BITMAPINFO structure contains an array of literal RGB values.
HWND_TOPMOST 
SC_RESTORE wParam of WM_SYSCOMMAND. SC_RESTORE: Restores the window to its normal position and size.
SRCCOPY Copies the source rectangle directly to the destination rectangle.
SWP_DRAWFRAME 
SWP_FRAMECHANGED 
SWP_HIDEWINDOW 
SWP_NOACTIVATE 
SWP_NOCOPYBITS 
SWP_NOMOVE 
SWP_NOOWNERZORDER 
SWP_NOREDRAW 
SWP_NOREPOSITION 
SWP_NOSENDCHANGING 
SWP_NOSIZE 
SWP_NOZORDER 
SWP_SHOWWINDOW 
VK_CAPITAL 
VK_NUMLOCK 
VK_SHIFT 
WH_KEYBOARD Installs a hook procedure that monitors keystroke messages.
WH_KEYBOARD_LL Windows NT/2000/XP: Installs a hook procedure that monitors low-level keyboard input events.
WH_MOUSE Installs a hook procedure that monitors mouse messages.
WH_MOUSE_LL Windows NT/2000/XP: Installs a hook procedure that monitors low-level mouse input events.
WM_ACTIVATE 
WM_ERASEBKGND The WM_ERASEBKGND message is sent when the window background must be erased (for example, when a window is resized).
WM_KEYDOWN 
WM_KEYUP 
WM_LBUTTONDBLCLK 
WM_LBUTTONDOWN 
WM_LBUTTONUP 
WM_MBUTTONDBLCLK 
WM_MBUTTONDOWN 
WM_MBUTTONUP 
WM_MOUSEFIRST 
WM_MOUSELAST 
WM_MOUSEMOVE 
WM_MOUSEWHEEL 
WM_NCACTIVATE 
WM_NCCALCSIZE The WM_NCCALCSIZE message is sent when the size and position of a window's client area must be calculated.
WM_NCHITTEST The WM_NCHITTEST message is sent to a window when the cursor moves, or when a mouse button is pressed or released.
WM_NCLBUTTONDOWN The WM_NCLBUTTONDOWN message is posted when the user presses the left mouse button while the cursor is within the nonclient area of a window.
WM_NCLBUTTONUP The WM_NCLBUTTONUP message is posted when the user releases the left mouse button while the cursor is within the nonclient area of a window.
WM_NCMOUSELEAVE The WM_NCMOUSELEAVE message is posted to a window when the cursor leaves the nonclient area of the window specified in a prior call to TrackMouseEvent.
WM_NCMOUSEMOVE The WM_NCMOUSEMOVE message is posted to a window when the cursor is moved within the nonclient area of the window.
WM_NCPAINT 
WM_PAINT 
WM_RBUTTONDBLCLK 
WM_RBUTTONDOWN 
WM_RBUTTONUP 
WM_SIZE The WM_SIZE message is sent to a window after its size has changed.
WM_SYSCOMMAND 
WM_SYSKEYDOWN 
WM_SYSKEYUP 
WM_THEMECHANGED 
WM_WINDOWPOSCHANGED 
WM_WINDOWPOSCHANGING 
WM_XBUTTONDBLCLK 
WM_XBUTTONDOWN 
WM_XBUTTONUP 

See Also