No buttons in modeless CXTPPropertySheet |
Post Reply |
Author | |
Marco1
Senior Member Joined: 16 January 2004 Location: Germany Status: Offline Points: 251 |
Post Options
Thanks(0)
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; } |
|
Algae
Senior Member Joined: 08 January 2007 Location: United States Status: Offline Points: 217 |
Post Options
Thanks(0)
|
I believe it is standard behavior for modeless propertysheet. Search modeless propertysheet on the web. You can add the buttons back in though.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |