Archived

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

Mullvad

Dialog and Control deleting

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(hButtonNEW, WM_CLOSE, 0, 0);
Is there any other way to delete a control?? Becuse this doesnt works so good always.

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