title: How to setup multiple radio button groups for proper tab-order and keyboard interaction (WIN32)?
body: <p>First of all this is not MFC.<br>
  Here is a cropped version of the GUI I have been working on:</p>
  
  <p><img src="https://i.stack.imgur.com/03p3T.jpg" alt="enter image description here"></p>
  
  <p>As you can see I have (attempted) to create two different groups, Icon and Button, using the code:</p>
  
  <pre><code>    index-&gt;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);
  </code></pre>
  
  <p>The issue I have, and what you can probably see, is that there is only one radio button for the window. This means that the user couldn't possibly select one radio button from the Icon group, and one from the Button group. I have initialised each Radio button as so:</p>
  
  <pre><code>    index-&gt;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);       
  </code></pre>
  
  <p>I would like to, somehow, have the "Icon" group of radio buttons seperate from the "Button" group of radio buttons, if that makes sense, and therefore will have one radio button available to each group.
  How will this be possible, will it require me to make a new window and a new callback procedure just to have an extra radio button. There must be another way to group child items like so.</p>
  
  <p><a href="https://stackoverflow.com/questions/10716640/c-2-separate-groups-of-radio-buttons-in-the-same-form-winapi-no-mfc">2 separate groups of radio buttons in the same form WINAPI (No MFC)</a>
  The link was not of any use for my purpose.</p>
  
  <p>I have Programming For Windows Fifth Edition, by Charles Petzold beside me as reference, and he states in the Group Boxes section "Group boxes are often used to enclose other button controls", yet there is not real example of this.</p>