Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SendMessage/PostMessage? 1

Status
Not open for further replies.

vb5prgrmr

Programmer
Jul 5, 2002
3,622
US

I have been playing around with the SetParent API and what I have so far is the following...

In program1 I have a MDIParent with a MDIChild. In program2 I have a form that I use the SetParent API to set the parent of this form to the MDIChild of program1 (maximized of course).

Now here is the problem...

When I resize program1 (the MDIParent) the MDIChild in program1 resizes like it is supposed to (maximized), but the form in program2 does not. Now I did not expect it too either but for the life of me I can't remember how to send a resize or maximize message to program2's form.

BTW, you can assume that I do have the handles to all the windows. I have used the SendMessage API to pass the window handles between the two programs.

Thanks for reading this far.


 

Paul,

Thanks for the reply. I read your post and then went on to other things and of course I did not remember what you posted correctly and ended up using setwindowpos api, but here is a star because between your post and my memory I got the problem solved. Thanks for pointing me in a different direction.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top