Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Dec : How to find Form handle from any handle

www.cryer.info
Managed Newsgroup Archive

How to find Form handle from any handle

Subject:How to find Form handle from any handle
Posted by:"Venu" (ven..@hotmail.com)
Date:Tue, 26 Dec 2006 20:20:50 +0530

Hi,

Im overriding Application.OnMessage.

In that, I want to find the form handle for any message handle which goes
through.

How to find the form handle from any handle

By handle, I mean Windows message handle for a control or any window object.

GetParentForm(FindControl(Msg.Hwnd)) - doesnt seems to work for
a combobox control

regards


Venu

Replies:

www.cryer.info
Managed Newsgroup Archive