title: Creating a Window in WinAPI after pressing a button
body: <p>I'm making an auto clicker for a game in WinAPI and I have 4 simple buttons on the main window. When the user presses the 'start' button I want another window to open asking them for settings such as number of times to click and time between clicks. When I try to create a new window, nothing is happening, but everything else works perfectly.</p>
  
  <pre><code>LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
  {
      switch (uMsg)
      {
      case WM_DESTROY:
          {
              PostQuitMessage(0);
              return 0;
          }
  
      case WM_COMMAND:
          {
              switch (wParam)
              {
              case ID_START:
                  {
                      HINSTANCE hInstance = GetModuleHandle(CLASS_NAME);
  
                      HWND settings = CreateWindowEx(
                          0,
                          L"Settings",
                          L"Settings",
                          WS_OVERLAPPEDWINDOW | WS_VISIBLE | WS_CHILD,
                          100, 100, 600, 200, 
                          NULL,
                          (HMENU) ID_SETTINGS,
                          hInstance,
                          NULL
                          );
  
                      MSG msg = { };
  
                      while (GetMessage (&amp;msg, NULL, 0, 0))
                      {
                          TranslateMessage(&amp;msg);
                          DispatchMessage(&amp;msg);
                      }
  
                      return 0;
                  }
  
              case ID_QUIT:
                  {
                      PostQuitMessage(0);
                      return 0;
                  }
  
              case ID_CALIB:
                  {
                      if (MessageBox(hwnd, L"You pressed Calibrate", L"Calibrate", MB_OK))
                      {
                          return 0;
                      }
                  }
  
              case ID_INFO:
                  {
                      if (MessageBox(hwnd, L"You pressed about", L"About", MB_OK))
                      {
                          return 0;
                      }
                  }
              }
          }
  
      case WM_PAINT:
          {
              PAINTSTRUCT ps;
  
              HDC hdc = BeginPaint(hwnd, &amp;ps);
  
              FillRect(hdc, &amp;ps.rcPaint, (HBRUSH)(COLOR_WINDOW+1));
              EndPaint(hwnd, &amp;ps);
  
              return 0;
          }       
      }
  
      return DefWindowProc(hwnd, uMsg, wParam, lParam);
  }
  </code></pre>
  
  <p>I just started WinAPI today, so I am extremely new. Thanks for any help in advance!</p>