Advertisement

An MFC Question

Started by December 23, 2000 10:18 PM
0 comments, last by DisKordCoder 24 years, 1 month ago
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