1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
if (title[0]=='\\') //DISABLE
{
CreateWindow(TEXT("button"), TEXT("C++"),
WS_VISIBLE | WS_CHILD | WS_DISABLED,
350,60,100,25,
hwnd, (HMENU) 111, NULL, NULL
);
}
if (title[0]=='/') //ENABLE
{
CreateWindow(TEXT("button"), TEXT("C++"),
WS_VISIBLE | WS_CHILD,
350,60,100,25,
hwnd, (HMENU) 111, NULL, NULL
);
}
| |