title: How to fill combobox in a Visual Studio C++ Win32 project
body: <p>How can I fill a combobox in a Visual Studio C++ Win32 project. And how can check that which word was selected by the user.</p>
  
  <p>I mean I want a comboxbox for example filled with these: One, Two, Three. And I want to do different events depends on which one was chosen by the user.</p>
  
  <p>Edit: The windows was created as a dialogbox in the resource editor and the message thread runs like this:</p>
  
  <pre><code>int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
  {
      return DialogBox(hInst, MAKEINTRESOURCE(IDD_MAIN), NULL, DlgProc);
  }
  </code></pre>
  
  <p>Thank you in advance!</p>