Print Page | Close Window

No buttons in modeless CXTPPropertySheet

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=16210
Printed Date: 16 November 2024 at 10:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: No buttons in modeless CXTPPropertySheet
Posted By: Marco1
Subject: No buttons in modeless CXTPPropertySheet
Date 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;
}




Replies:
Posted By: Algae
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net