How to Pass a Point Structure to the Windows API by Value (138518)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q138518 SUMMARY
The WindowFromPoint and ChildWindowFromPoint API functions require that a
Point structure be passed by value. Visual Basic is not capable of passing
a structure by value, only by reference. However, it is possible to
pass the elements of the user-defined type in the correct order so that
these API functions can be used. This article explains and demonstrates how
to pass the Point structure by value to the API in the 16-bit and 32-bit
editions of Visual Basic.
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | KB138518 |
---|
|