title: Default button in Window created with CreateWindowEx()
body: <p>I've created a window using <code>CreateWindowEx</code> which functions as a wizard dialog using the following code;</p>
  
  <pre><code>DWORD dwStyle = WS_DLGFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_OVERLAPPEDWINDOW;
  m_hWnd = CreateWindowEx(WS_EX_APPWINDOW, _T("WIZARD"), _T("SETUP"), dwStyle, CW_USEDEFAULT, CW_USEDEFAULT, WIZARD_WIDTH, WIZARD_HEIGHT, NULL, NULL, g_hInstance, this);
  </code></pre>
  
  <p>In the <code>WM_CREATE</code> handler I create the bottom 'Next', 'Back' and 'Cancel' buttons, on the Next' button I set the style <code>BS_DEFPUSHBUTTON</code> and I send the <code>DM_SETDEFID</code> to the window with the ID of the next button. The button displays like a next button but hitting return on any of the input fields does nothing (None have <code>ES_WANTRETURN</code> set).</p>
  
  <p>What am I doing wrong? I can post more code if I've missed anything vital out.</p>
  
  <p>Thanks,
  J</p>