Winapi Button

alekssgor

Well-Known Member
26.05.2008
118
0
#1
hButton[1] = CreateWindow("BUTTON", "Стиль BS_GROUPBOX", WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 40, 100, 200, 85, hwnd, (HMENU)ID_BUTTON2, hinstance, NULL);
hButton[2] = CreateWindow("BUTTON", "Радио кнопка1", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON, 10, 30, 120, 15, hButton[1], (HMENU)ID_BUTTON3, hinstance, NULL);
hButton[3] = CreateWindow("BUTTON", "Радио кнопка2", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON, 10, 50, 120, 15, hButton[1], (HMENU)ID_BUTTON4, hinstance, NULL);

Как обработать событие WM_COMMAND hButton[2] и hButton[3] в функции окна если хозяин не hwnd, а hButton[1]