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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close one window from another

Status
Not open for further replies.

Bartec

Programmer
Jan 21, 2005
54
PL
Hi!
I need to close one window from the other (parent). This which I need to close I create when click on a button in parent window.
So I think trick with constructor is not the best.

thanks for response

Bartek
 
The parent should have a pointer to the child window or a copy of its HWND at least. Just post a message to tell the child to close (WM_CLOSE should be sufficient although you might need to handle the message differently from normal if you need to clean stuff up when the window is closed).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top