title: property sheet - how can I remove the border?
body: <p>I've embedded a property sheet in a dialog box IDC_CONTAINER by specifying the HWND of the container in the hwndParent of the property sheet header when creating the property sheet.  In the callback I specified the following...</p>
  
  <pre><code>int CALLBACK PSCallback (HWND hWnd, UINT message, LPARAM lParam)
  {
  
      LONG Z, Y;
  
      switch (message)
      {
      case PSCB_PRECREATE:                    // Remove Title Bar and Borders.
                                              // SO FAR border removal not working
  
          ((LPDLGTEMPLATE)lParam)-&gt;style &amp;= ~WS_CAPTION;
  
          break;
      }
  
      return 0;
  }
  </code></pre>
  
  <p>The property sheet is displayed without a title bar as expected but with a border.  I expected the border to go away since WS_CAPTION contains the border style per the MSDN.  </p>
  
  <p>Is there some way to get rid of the border?</p>
  
  <p>win32api no mfc c++</p>