1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
case WM_CREATE:
/* Create Checkbox */
CreateWindowW(L"button", L"Adobe Professional 11",
WS_VISIBLE | WS_CHILD | BS_CHECKBOX,
20, 50, 188, 35,
hwnd, (HMENU) 1, NULL, NULL);
CheckDlgButton(hwnd, 1, BST_UNCHECKED);
/* Create "Install" Button */
CreateWindow(TEXT("button"), TEXT("Install"),
WS_VISIBLE | WS_CHILD,
650, 500, 80, 25,
hwnd, (HMENU) 1, NULL, NULL);
break;
case WM_COMMAND:
checked = IsDlgButtonChecked(hwnd, 1);
if (checked) {
CheckDlgButton(hwnd, 1, BST_UNCHECKED);
} else {
CheckDlgButton(hwnd, 1, BST_CHECKED);
}
break;
|