|
-
March 31st, 1999, 03:22 AM
#1
DataPropertypage - sheet
How do I get a pointer to the propertysheet from within a propertypage.
-
March 31st, 1999, 11:11 AM
#2
Re: DataPropertypage - sheet
Declare the property sheet in a header file, then refer to it. For example:
//mainfrm.h
CPropertySheet* m_pSheet;
// mainfrm.cpp
m_pSheet.AddPage(&Page1);
m_pSheet.AddPage(&Page2);
// page1.cpp
int nIndex = ((CMainFrame* )AfxGetMainWnd())->m_pSheet->GetActiveIndex();
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|