How to make a button invisible dynamically
C / C++ / MFC
5
Posts
4
Posters
0
Views
1
Watching
-
Hello, How can i make a button invisible dynamically and then make it visible again? I think CButton::SetButtonStyle() cannot do. Thanks in advance..
ShowWindow(SW_HIDE)
,ShowWindow(SW_SHOW)
. Stability. What an interesting concept. -- Chris Maunder -
ShowWindow(SW_HIDE)
,ShowWindow(SW_SHOW)
. Stability. What an interesting concept. -- Chris Maunder -
Controls are windows also :).
-
If you make a button on a form/dialog invisible, you might also want to disable it as well, because otherwise, the user might still tab to it or otherwise activate the window. ControlWindow.EnableWidnow(FALSE); ControlWindow.ShowWindow(SW_HIDE); ... ControlWindow.ShowWindow(SW_SHOW); ControlWindow.EnableWidnow(TRUE);