1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
case WM_CREATE:
{ CreateWindow(TEXT("static"), TEXT("ANTIVIRUS"),
WS_VISIBLE | WS_CHILD ,
85, 20, 100, 25,
hwnd, (HMENU) 1, NULL, NULL);
CreateWindow(TEXT("static"), TEXT("Scan Options:"),
WS_VISIBLE | WS_CHILD ,
85, 70, 100, 25,
hwnd, (HMENU) 2, NULL, NULL);
CreateWindow(TEXT("button"), TEXT("Local Disk (D:)"),
WS_VISIBLE | WS_CHILD ,
75, 100, 110, 25,
hwnd, (HMENU) 3, NULL, NULL);
break;
}
case WM_COMMAND:
{
if (LOWORD(wParam) == 3) {
int cscan(int ok, char* A); //this part
break;
}
|