// The groupbox groupbox = API_Button_Create(win,160,5,475,room_height - 30,WS_VISIBLE|WS_CHILD|BS_GROUPBOX,0); API_Control_SetText(group_option,"Groupbox"); // Don't care about this o_width = API_Control_GetWidth(groupbox); o_height = API_Control_GetHeight(groupbox); // The control that I want to create inside the groupbox button = API_Button_Create(groupbox,50,(o_height / 2) - 15,100,30,WS_VISIBLE|WS_CHILD|BS_PUSHBUTTON,0); API_Control_SetText(button,"Button");
But it doesn't work. I've tried to do this with the LPWinAPI extension, and it works, but I want to do it with MaxWinAPI 2 too. If you know how I'm supposed to do, please tell me! Thanks in advance!