Set ShowWindow property of the form to 2 (top-level form). In more accurate words, WS_EX_LAYERED extended style cannot be used for child windows, as stated in Window Features aticle on MSDN.
Hit testing of a layered window is based on the shape and transparency of the window. This means that the areas of the window that are color-keyed or whose alpha value is zero will let the mouse messages through.
However, if the layered window has the WS_EX_TRANSPARENT extended window style, the shape of the layered window will be ignored and the mouse events will be passed to other windows underneath the layered window.
While running this code, I got an error message HWND propery is not found. (THIS.HWND). Can you plz tell me the way to get FORM.HANDLE value. I am using VFP6 in WIN2K. Thanks
A.M. | 2005-12-02 07:47:18
To obtain HWND of a Form, in VFP3..6 call GetFocus API. Make sure, this call is made after the form is activated. That means do not place it in INIT but in ACTIVATE code.
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.1.55-log), the Open Source standard SQL database,
AceHTML Freeware
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc.