[lazarus] LCL: TApplication.FHandle
Nikolai Zhubr
s001 at hotbox.ru
Mon Sep 29 11:11:06 EDT 2003
Hi,
Monday, 29 September, 2003, 18:49:01, Michael Van Canneyt wrote:
[...]
> I'm not sure, but windows allocates a handle for each started process.
> My guess was that Application.Handle represents this handle.
No, IIRC delphi's TApplication explicitely creates an invisible window
which subsequentally becomes a parent window for all forms' windows.
This results, for example, in that there are no separate buttons for
each form on the taskbar but just one. This invisible mega-parent is
kept in Application.Handle. It sometimes appears usefull to do
SetForegroundWindow(Application.Handle);
ShowWindow(Application.Handle, SW_RESTORE);
to get user's attention :)
--
Best regards,
Nikolai Zhubr
> However, looking at the VCL code, it doesn't look at this at all...
> so I'm as confused as you are ...
> Michael.
> _________________________________________________________________
> To unsubscribe: mail lazarus-request at miraclec.com with
> "unsubscribe" as the Subject
> archives at http://www.lazarus.freepascal.org/mailarchives
More information about the Lazarus
mailing list