Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - No buttons in modeless CXTPPropertySheet
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

No buttons in modeless CXTPPropertySheet

 Post Reply Post Reply
Author
Message
Marco1 View Drop Down
Senior Member
Senior Member


Joined: 16 January 2004
Location: Germany
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marco1 Quote  Post ReplyReply Direct Link To This Post Topic: No buttons in modeless CXTPPropertySheet
    Posted: 17 February 2010 at 4:35am
Is there a reason why buttons aren't created in a modeless CXTPPropertySheet? I made a modal CXTPPropertySheetDlg modeless and all buttons (OK, Cancel, Apply) are gone.
A further look in the CJ code shows:

BOOL CXTPPropertySheet::CreateButtons()
{
  if (m_bModeless && !IsWizard())
    return TRUE;

Why that?


A quick workaround is:

int CMyModelessPropertySheetDlg::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
  m_bModeless = FALSE;

  if (CXTPPropertySheet::OnCreate(lpCreateStruct) == -1)
    return -1;

  m_bModeless = TRUE;

  return 0;
}

Back to Top
Algae View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 January 2007
Location: United States
Status: Offline
Points: 217
Post Options Post Options   Thanks (0) Thanks(0)   Quote Algae Quote  Post ReplyReply Direct Link To This Post Posted: 19 March 2010 at 3:13pm
I believe it is standard behavior for modeless propertysheet. Search modeless propertysheet on the web. You can add the buttons back in though.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.