Smart Device Functions:
// If you don't want to pass a rect, you can use this overload passing IntPtr.Zero.
Public Overloads Declare Function ValidateRect Lib "User32" (ByVal hWnd As IntPtr, ByRef lpRect As RECT) As Boolean
In the Win32 API, it is valid to specify a value of "NULL" to lpRect. Use IntPtr.Zero in C#. This will validate the entire rectangle.
Tips & Tricks:
You can specify the lpRect param as null if you define your function as you can see bellow:
Please add some!
Alternative Managed API:
Do you know one? Please contribute it!
The ValidateRect API
11/8/2011 10:02:15 AM - Dee-188.8.131.52
The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle.
5/10/2013 11:19:44 PM - dahminator-184.108.40.206
An IntPtr is a pointer to a memory location (unmanaged) that adapts to the platform it is running on (64-bit, etc.) UNLIKE a standard int/Integer. You should always use this type for unmanaged calls that require it, even though an int will appear to work on your development machine.
1/13/2008 11:00:13 AM - tsahi-220.127.116.11
Please edit this page!
Do you have...