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

CXTPPropertySheet VS11

 Post Reply Post Reply
Author
Message
No.Regsz View Drop Down
Groupie
Groupie


Joined: 28 December 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote No.Regsz Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertySheet VS11
    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
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.140 seconds.