Dont worry, I have worked it out - Needed to assign a control variable
to the checkbox first
18: // Set all of the check boxes to checked
21: m_bEnableMsg = TRUE;
22: m_bEnablePgm = TRUE;
if (m_bEnableMsg == TRUE)
14: {
15: // Yes, so enable all controls that have anything
16: // to do with showing the user message
17: GetDlgItem(IDC_MSG)->EnableWindow(TRUE);
18: GetDlgItem(IDC_SHWMSG)->EnableWindow(TRUE);
19: GetDlgItem(IDC_DFLTMSG)->EnableWindow(TRUE);
20: GetDlgItem(IDC_CLRMSG)->EnableWindow(TRUE);
21: GetDlgItem(IDC_STATICMSG)->EnableWindow(TRUE);
22: }
Tim Norton wrote:
Real simple I am sure but having come from the world ofVB.net, not
simple enough.
In VB to read the state of a checkbox you would use if
checkbox1.value=true then...
how would i do this in C++ MFC?