Ok two questions When I try to uncheck the boxes for these it brings up an error in MFC42.dll. I also wanna know if I am getting this correct. Alright the GetDlgItem is selecting the Item the ShowWindow function is telling if it should show the window or not show it. What does this operator -> (if it is called that) do?
And void Cday22Dlg::OnCkshwmsg() is a function in the class Cday22Dlg?? Thanks
void CDay22Dlg::OnCkshwmsg()
{
UpdateData(TRUE);
if (m_bEnableMsg == TRUE)
{
GetDlgItem(IDC_MSG)->ShowWindow(TRUE);
GetDlgItem(IDC_SHWMSG)->ShowWindow(TRUE);
GetDlgItem(IDC_DFLTMSG)->ShowWindow(TRUE);
GetDlgItem(IDC_CLRMSG)->ShowWindow(TRUE);
GetDlgItem(IDC_STATIC)->ShowWindow(TRUE);
}
else
{
GetDlgItem(IDC_MSG)->ShowWindow(FALSE);
GetDlgItem(IDC_SHWMSG)->ShowWindow(FALSE);
GetDlgItem(IDC_DFLTMSG)->ShowWindow(FALSE);
GetDlgItem(IDC_CLRMSG)->ShowWindow(FALSE);
GetDlgItem(IDC_STATIC)->ShowWindow(FALSE);
}