I have a button, if I say, check the box, then it should focus on one of the two buttons.
I'm not sure how to use BM_SETSTATE - if this is the way to do it.
// snip... case WM_COMMAND: switch (LOWORD(wParam)) { case IDC_CHECK: if (IsDlgButtonChecked(hDlg, IDC_CHECK)) { EnableWindow(GetDlgItem(hDlg, IDOK), TRUE); EnableWindow(GetDlgItem(hDlg, IDCANCEL), TRUE); BM_SETSTATE // ... ?? } else // ... snip
any help is much appreciated! Many thanks!
source share