Name
GetWindowRect
Synopsis
Returns the top, left, height, and width of the specified window’s bounding rectangle:
Private Declare Function GetWindowRect Lib "user32" _ (ByVal hwnd As Long, lpRect As RECT) As Long
Parameters
-
hwnd
The handle of the window
-
lpRect
A pointer to a
RECT
structure
Return Value
If successful, returns a nonzero value. Otherwise, returns a zero.
Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.