Archived

This topic is now archived and is closed to further replies.

Dialog and Control deleting

This topic is 5775 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a problem. I am deleting some button controls with PostMessage(); WM_CLOSE funktion and its works but if I have befor it should be deleted openned two dialogs it doesnt work why? Mullvad

Share this post


Link to post
Share on other sites
PostMessage doesn''t delete a control, DestroyWindow does. The former simply sends a given message to the window (controls are windows too), and the window responds according to its window procedure.

[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!

Share this post


Link to post
Share on other sites