WindowBlinds : DirectSkin
GetRealWindowRectEx
 

The GetRealWindowRectEx method returns the real window coordinates for the window. The usual GetWindowRect functions will return the modified values which deduct the larger borders from the rect returned.

long GetRealWindowRect(
long
hWnd,
long FAR* r );

Parameters

hWnd
Handle to the window.
r
Pointer to a RECT structure.

Return Values

 

0 = no error
2 = invalid window

Remarks

 

The normally used GetWindowRect API returns the rectangular area of the window as it would be without a skin applied.  This is done for compatibility reasons.
.NET is unable to call this function due to how it handles pointers.
This is the same as GetRealWindowRect, but it will return a value indicating success or failure.

See Also

 

GetRealWindowRect