title: Is it possible to receive messages from a parent window which is NOT the main window?
body: <p>I'm trying to receive a message from a button when clicked.
  But instead of receiving it from the main window, I would like to receive it from a tab control, which is a child of the main window. But I'm not sure how to go about this.</p>
  
  <p>This is the creation of the button:   </p>
  
  <pre><code>deAll = CreateWindowEx(0, "BUTTON", "Disable All", WS_CHILD | BS_PUSHBUTTON, 135, 49, 95, 26, tabs, (HMENU)204, instance, NULL);
  </code></pre>
  
  <p>Obviously, tabs is a tab control.</p>
  
  <p>This is the creation of the tab control:</p>
  
  <pre><code>tabs = CreateWindowEx(0, WC_TABCONTROL, 0, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 0, 0, rc.right + 2, rc.bottom - 22, hwnd, NULL, instance, NULL);
  </code></pre>
  
  <p>And hwnd is the main window.</p>
  
  <p>Any ideas? Or do I have to make every control a child of the main window?
  This was made using the Win32 API in C++.</p>