CXTPPropertyPage and SetModified |
Post Reply |
Author | |
ilya
Groupie Joined: 07 May 2012 Status: Offline Points: 37 |
Post Options
Thanks(0)
Posted: 22 June 2013 at 4:17pm |
Resolved, will be available in 16.2.1
|
|
ilya
Groupie Joined: 07 May 2012 Status: Offline Points: 37 |
Post Options
Thanks(0)
|
lrenoux
Groupie Joined: 20 April 2009 Status: Offline Points: 62 |
Post Options
Thanks(0)
|
Since SDK 8.0/ ToolkitPro 16.1.0 and Visual 2012, it's not possible to call method SetModified from an instance of CXTPPropertyPage. Because the new SDK 8.0 method inherited from CPropertyPage search for a CPropertySheet parent class in method GetParentSheet() :
void CPropertyPage::SetModified(BOOL bChanged) { if (m_hWnd == NULL) // allowed for backward compatibility return; ASSERT(::IsWindow(m_hWnd)); ASSERT(GetParentSheet() != NULL); CWnd* pParentWnd = GetParentSheet(); if (bChanged) pParentWnd->SendMessage(PSM_CHANGED, (WPARAM)m_hWnd); else pParentWnd->SendMessage(PSM_UNCHANGED, (WPARAM)m_hWnd); } CPropertySheet *CPropertyPage::GetParentSheet() { for (CWnd *pWnd = GetParent(); pWnd != NULL; pWnd = pWnd->GetParent()) { CPropertySheet *pSheet = DYNAMIC_DOWNCAST(CPropertySheet, pWnd); if (pSheet != NULL) { return pSheet; } } ASSERT(FALSE); // Could not find the CPropertySheet return NULL; } and your CXTPPropertySheet doesn't inherit from CPropertySheet but CDialog. Ticket open. L.
|
|
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 |