Hi!
I just looked to samples from DEVCON11. Only form object have HWND property. You're right. The sample was a form without caption.
The solution with ActiveX controls might be the best here.
>>Hi!
>>
>>At DEVCON 11 I have seen a sample for new VFP 7 thins. In the sample demonstrated new property of controls - hWND. The sample made a command button elliptic using 2 API functions - CreateEllipticRgn and SetWindowRgn. Handle for SetWindowRgn used from Hwnd property of command button. Whan sample run at VFP 7 - button is really elliptic.
>>
>>How you can comment that? MS removed this feature in the next releases of VFP7? If yes, I'm quite wondered than...
>
>Not having seen the demonstration, it's difficult to comment. However, native controls, including the command button are not windows and therefore do not have a window handle. So there are two possible conclusions that can be drawn: Either the window handle was that of the form or the command button was something like the MS Forms 2.0 command button or other ActiveX control (which is a window and therefore has its own hWnd).
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.