Method | Description | |
---|---|---|
GetCursorPosition ( ) : Point |
Returns the cursor's current position as a System.Windows.Point.
|
|
GetWindowClientAreaSize ( |
Returns a Rectangle containing the bounds of the specified window's client area (i.e. area excluding border).
|
|
GetWindowPosition ( System.Windows.Forms.NotifyIcon notifyicon, double windowwidth, double windowheight, double dpi, bool pinned ) : Point |
Returns the optimum window position in relation to the specified notify icon.
|
|
GetWindowSize ( |
Returns a Rectangle containing the bounds of the specified window's area (i.e. area excluding border).
|
|
GetWorkingArea ( |
Returns the working area of the monitor that intersects most with the specified rectangle. If no monitor can be found, the closest monitor to the rectangle is returned.
|
|
IsCursorOverNotifyIcon ( System.Windows.Forms.NotifyIcon notifyicon ) : bool |
Returns true if the cursor is currently over the specified notify icon.
|
public static GetWindowClientAreaSize ( |
||
hWnd | Handle of the window. | |
return |
public static GetWindowPosition ( System.Windows.Forms.NotifyIcon notifyicon, double windowwidth, double windowheight, double dpi, bool pinned ) : Point | ||
notifyicon | System.Windows.Forms.NotifyIcon | The notify icon that the window should be aligned to. |
windowwidth | double | The width of the window. |
windowheight | double | The height of the window. |
dpi | double | The system's DPI (in relative units: 1.0 = 96 DPI, 1.25 = 120 DPI, etc.). |
pinned | bool | Whether the window is pinned open or not. Affects positioning in Windows 7 only. |
return | Point |
public static GetWindowSize ( |
||
hWnd | Handle of the window. | |
return |
public static GetWorkingArea ( |
||
rectangle | The rectangle that is located on the monitor whose working area should be returned. | |
return |
public static IsCursorOverNotifyIcon ( System.Windows.Forms.NotifyIcon notifyicon ) : bool | ||
notifyicon | System.Windows.Forms.NotifyIcon | The notify icon to test. |
return | bool |