title: win32 resource file help
body: <p>on <a href="http://zetcode.com/tutorials/winapi/controls/" rel="nofollow">this</a> website, under the "<strong>Edit Control</strong>" title, there are a couple of lines of code like this..</p>
  
  <pre><code>case WM_CREATE:
      hwndEdit = CreateWindow(TEXT("Edit"), NULL, WS_CHILD | WS_VISIBLE | WS_BORDER,
                  50, 50, 150, 20, hwnd, (HMENU) ID_EDIT,
                  NULL, NULL);
  
      hwndButton = CreateWindow(
          TEXT("button"), TEXT("Set Title"),       
          WS_VISIBLE | WS_CHILD,  
          50, 100, 80, 25,        
          hwnd, (HMENU) ID_BUTTON, NULL, NULL);      
  
      break;
  </code></pre>
  
  <p>I know that this method of creating buttons and such are done on the fly, But I was wondering how you would do it without doing it like this, instead using a resource file?. 
  In the Forgers Win32 <a href="http://www.winprog.org/tutorial/resources.html" rel="nofollow">tutorial</a> it shows how to make a menu using a resource file, and how to describe a dialog box etc, But I cant seem to put any controls on the main(parent) window using a resource file??.</p>
  
  <p>for example I have the following .rc file</p>
  
  <pre><code>#include "resource.h"
  ID_MENU MENU
  BEGIN
      POPUP "&amp;File"
      BEGIN
          MENUITEM "E&amp;xit", ID_FILE_EXIT
      END
      POPUP "&amp;About"
      BEGIN
          MENUITEM "&amp;Information", ID_ABOUT_INFO
      END
  END
  
  ID_ABOUT_INFO DIALOG DISCARDABLE  0,0,250,250 
  CAPTION "Information"
  BEGIN
      CTEXT "some text",ID_BLA,15,15,144,33
  END
  
  //this is all fine but how do I decribe the main window?, instead of the menu and dialog boxes?.
  </code></pre>
  
  <p>How do I describe the main window instead of creating things on the fly?. Is there some kind of keyword?</p>