Source:TyranoMapHack123/D3Scene.cpp6
Main Source - Part 6: More Buttons
Parent Directory: Source:TyranoMapHack123
Plain Code: edit
col1 = CreateWindow("button",
"Blue", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
19,382,70,20,
hwnd,
(HMENU)IDB_BOUT26,
hInst, NULL);
col2 = CreateWindow("button",
"Red", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
89,382,70,20,
hwnd,
(HMENU)IDB_BOUT27,
hInst, NULL);
col3 = CreateWindow("button",
"Green", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
159,382,70,20,
hwnd,
(HMENU)IDB_BOUT28,
hInst, NULL);
col4 = CreateWindow("button",
"Yellow", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
19,402,70,20,
hwnd,
(HMENU)IDB_BOUT29,
hInst, NULL);
col5 = CreateWindow("button",
"Purple", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
89,402,70,20,
hwnd,
(HMENU)IDB_BOUT30,
hInst, NULL);
col6 = CreateWindow("button",
"Pink", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
159,402,70,20,
hwnd,
(HMENU)IDB_BOUT31,
hInst, NULL);
col7 = CreateWindow("button",
"Grey", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
19,422,70,20,
hwnd,
(HMENU)IDB_BOUT32,
hInst, NULL);
col8 = CreateWindow("button",
"Black", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
89,422,70,20,
hwnd,
(HMENU)IDB_BOUT33,
hInst, NULL);
col9 = CreateWindow("button",
"White", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
159,422,70,20,
hwnd,
(HMENU)IDB_BOUT34,
hInst, NULL);
col10= CreateWindow("button",
"Teal", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
19,442,70,20,
hwnd,
(HMENU)IDB_BOUT35,
hInst, NULL);
col11= CreateWindow("button",
"Cyan", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
89,442,70,20,
hwnd,
(HMENU)IDB_BOUT36,
hInst, NULL);
col12= CreateWindow("button",
"Brown", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
159,442,70,20,
hwnd,
(HMENU)IDB_BOUT37,
hInst, NULL);
col13= CreateWindow("button",
"Wine", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
19,462,70,20,
hwnd,
(HMENU)IDB_BOUT38,
hInst, NULL);
col14= CreateWindow("button",
"Forest", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
89,462,70,20,
hwnd,
(HMENU)IDB_BOUT39,
hInst, NULL);
col15= CreateWindow("button",
"Mustard", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
159,462,70,20,
hwnd,
(HMENU)IDB_BOUT40,
hInst, NULL);
font=GetStockObject (DEFAULT_GUI_FONT);
enfant=GetWindow(hwnd,GW_CHILD);
do {SendMessage(enfant,WM_SETFONT,(WPARAM)font,0);
enfant=GetWindow(enfant,GW_HWNDNEXT);
}while (enfant);
break;
case WM_DESTROY:
PostQuitMessage (0);
break;
default:
return DefWindowProc (hwnd, message, wParam, lParam);
}return 0;
}