Hi there!
I want to enable/disable a group box.
Since a groupbox is in fact a CButton I thought that it would be easy using code like:
GetDlgItem(IDC_GROUPBOX)->EnableWindow(true);
or
CButton* grb = (CButton*) GetDlgItem(IDC_GROUPBOX);
grb->EnableWindow(true);
I even tried a CWnd* in stead of a CButton*, but every time the EnableWindow function returns an error, stating that the groupbox is not a window and thus cannot be enabled/disabled.
I must be doing something terribly wrong...but WHAT????
Regards,
Martijn
I want to enable/disable a group box.
Since a groupbox is in fact a CButton I thought that it would be easy using code like:
GetDlgItem(IDC_GROUPBOX)->EnableWindow(true);
or
CButton* grb = (CButton*) GetDlgItem(IDC_GROUPBOX);
grb->EnableWindow(true);
I even tried a CWnd* in stead of a CButton*, but every time the EnableWindow function returns an error, stating that the groupbox is not a window and thus cannot be enabled/disabled.
I must be doing something terribly wrong...but WHAT????
Regards,
Martijn