the menu in CPropertysheet with vs8 ???

Hi all,

In evc4, when i want to create a property sheet with menubar and minimize button. I can create my own class derived from CPropertySheet, example like that:

 BOOL CMyPropertySheet::OnInitDialog()

   BOOL bResult = CPropertySheet::OnInitDialog();
 // TODO: Add your specialized code here
 // Remove (hide) the OK button
    SHDoneButton(m_hWnd, SHDB_HIDE);
 // Create the command bar control 
   m_pWndEmptyCB = new CCeCommandBar;
   ASSERT_VALID(m_pWndEmptyCB); 
      if (m_pWndEmptyCB != NULL) {
          m_pWndEmptyCB->CreateEx(this);
          ASSERT(::IsWindow(m_pWndEmptyCB->m_hWnd));
          // Load the toolbar
          CCeCommandBar* pCommandBar = (CCeCommandBar*) m_pWndEmptyCB; 
         ASSERT_VALID(pCommandBar); 
         pCommandBar->LoadToolBar(IDR_OK_CANCEL); 
         pCommandBar->SetSizes(CSize(83 + 7, 16 + 6), CSize(83, 16)); 
      } 
   return bResult; }


I also try with vs8 on using CCommandBar or SHCreateMenuBar instead of CCeCommandBar, , but when Propertysheet appears, i can't see the menubar.

Can you give me some idea to do it for appears Propertysheet with menubar
Thank you




Answer this question

the menu in CPropertysheet with vs8 ???