Print Page | Close Window

CXTPPropertySheet VS11

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=20331
Printed Date: 16 November 2024 at 3:55pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropertySheet VS11
Posted By: No.Regsz
Subject: CXTPPropertySheet VS11
Date Posted: 26 November 2012 at 9:23am
CXTPPropertySheet has to inherit from CPropertySheet.
New code in dlgprop.cpp:

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;
}

Don't forget about this.

-------------
XTP 15.0.1
7 SP1
VS 2010 SP1 Beta



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