-
Sendmessage Help
Hi guys, here's my situation
I have an external app. In this app there's a parent window and a child window. Everytime i send a sendmessage to the parent window the child will show.
Now the problem is, the child windows will appear and the parent window will lost the focus. I don't want this to happen. It there a way to Sendmessage and the the child windows will appear not on the top. i don't want to deal with getforground windows and setfroground window.
Thanks for your reply.
-
Re: Sendmessage Help
Can you post the code you currently have?
-
Re: Sendmessage Help
Code:
Dim parent as Long, child as Long
parent = FindWindow("My class",vbnullstring)
Sendmessage parent,WM_COMMAND,2541,0 ' Show child and parent lost focus here
child = findwindow("#32770",vbnullstring)