Dialog and Control deleting
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
Mullvad
Please post some code
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
PostMessage(hButtonNEW, WM_CLOSE, 0, 0);
Is there any other way to delete a control?? Becuse this doesnt works so good always.
Mullvad
Is there any other way to delete a control?? Becuse this doesnt works so good always.
Mullvad
Mullvad
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!
[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement