DirectX7.GetWindowRect
The DirectX7.GetWindowRect method retrieves a rectangle that describes the client area of a window.
object.GetWindowRect(hwnd As Long, r As RECT)
Parameters
- object
- Object expression that resolves to a DirectX7 object.
- hwnd
- Window handle of the window for which the client-area rectangle will be retrieved.
- r
- A variable of type RECT that will be set to window's client area if the method succeeds.
Error Codes
If the method fails, an error is raised and Err.Number is set to an error code.