Windows Message to child window
-
Hi guys, I have two applications - 1. dialog based application 2. MFC gui dll. I have to send windows message from first application to second application. The problem is MFC Gui dll application is the child application of another window and the gui dll window has no name ( as title bar is removed ). For sending windows message, we need the window name, In my case, the gui dll window has no name and it is loaded as a child window on a third party application, in which i have no control. So how to send message from application 1 to application 2. Please help me guys. Its urgent. Thanks in Advance Velayudhan
-
Hi guys, I have two applications - 1. dialog based application 2. MFC gui dll. I have to send windows message from first application to second application. The problem is MFC Gui dll application is the child application of another window and the gui dll window has no name ( as title bar is removed ). For sending windows message, we need the window name, In my case, the gui dll window has no name and it is loaded as a child window on a third party application, in which i have no control. So how to send message from application 1 to application 2. Please help me guys. Its urgent. Thanks in Advance Velayudhan
-
I suppose you will use the window name in
FindWindow
function, you can use FindWindow with NULL in name and your Window's Classname in the next parameter and it will return the window handle.
Help your local Search & Rescue. Get lost!
Thanks, but it will not work in the case of child windows,
-
Thanks, but it will not work in the case of child windows,
You can always
EnumWindows
to find the child window. IMHO you are better off trying to create some sort of IPC so that one window can communicate with the other and also pass on their HWNDs (IPC could be Pipes.. TCP/IP whatever suits you).
Help your local Search & Rescue. Get lost!