First of all, this is not MFC.
Here is the cropped version of the GUI I was working on:

As you can see, I have (an attempt) to create two different groups: an icon and a button using the code:
index->hAddT.hwndIndex[2] = CreateWindowEx(NULL,L"BUTTON",L"Icon",WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 200,135,120,170,WINDOWHANDLE,(HMENU)IDC_RADIOGROUP,(HINSTANCE)GetWindowLong(WINDOWHANDLE,GWL_HINSTANCE),NULL);
I have a problem, and maybe you see that there is only one button for the window. This means that the user could not select one switch from the group of icons and one from the group of buttons. I initialized each Radio button as follows:
index->hAddT.hwndIndex[3] = CreateWindowEx(NULL,L"BUTTON",L"Information",WS_CHILD | BS_AUTORADIOBUTTON | WS_VISIBLE, 205,155,100,20,WINDOWHANDLE,(HMENU)IDC_RADIO1,(HINSTANCE)GetWindowLong(WINDOWHANDLE,GWL_HINSTANCE),NULL);
I would like for me to have an “Icon” radio button group divided into a “Button” radio button group, if that makes sense, and therefore will have one radio button available for each group. How will it be possible, will I require a new window and a new callback procedure to have an additional switch. There must be another way to group children like this.
2 separate switch groups in the same form WINAPI (No MFC) The link was not used for my purpose.
I have programming for Windows Fifth Edition, Charles Petzold is next to me as a link, and he points out in the “Group Boxes” section: “Group boxes are often used to enclose other button controls,” but there is no real example of this.