Checkbox in my program

Pages: 12
EnableWindow needs a window handle. Checkbox1 is the ID of the control, not a handle to it. So, the two step process is:


1
2
HWND hCheckbox = GetDlgItem (hwndDlg, CheckBox1);
EnableWindow (hCheckbox, FALSE);

Ah i see i got it working now, thanks!!!
Topic archived. No new replies allowed.
Pages: 12