An MFC Question
How can i disable buttons (so they turn grey and cannot be clicked on) in MFC, while the user is in my program, i need it to happen when a button is pressed.
Anyone?
bool flag; // true or false -- enable/disable respectivelyCButton* pb = (CButton*)GetDlgItem(IDC_XXX);// where XXX is the name of the button resource pb->EnableWindow(flag);
That''s one way, don''t know if it''s what your after though...
YAP-YFIO,
deadlinegrunt
~deadlinegrunt
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement