title: C++ Win32 API Controls messages
body: <p>im starting with Win32 api, im adding a button control to my main window with the flowing code:</p>
  
  <pre><code>
   HWND boton = CreateWindow(
      "BUTTON",   //
      "Caption",       // 
      WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON,  // Styles.
      250,         // x position.
      10,         // y position.
      100,        // Button width.
      40,        // Button height.
      hwnd,       // Parent window.
      NULL,       // No menu.
      (HINSTANCE)GetWindowLong(hwnd, GWL_HINSTANCE),
      NULL);      // Pointer not needed.
  </code></pre>
  
  <p>how can i assign it an id, so i can get the message on the loop, in the message loop im trying to catch the message as WM_COMMAND but i don't get any result i've tried with WM_NOTIFY too.</p>