Returns the page's parent dialog object.
C++
virtual CSftTabsDialog* CSftTabsPage::GetParentDialog() const;The return value is a pointer to the CSftTabsDialog based object which is the parent window of the page.
The GetParentDialog function returns the page's parent dialog object.
GetParentDialog retrieves the top-most enclosing CSftTabsDialog based object in case of nested tab controls with attached pages.
This example shows an OnOK member function of a CSftTabsPage based object. The page implements its own OK button. To process the OK button, it calls the parent dialog's OnOK member function.
void CPage4::OnOK()
{
// Send OK to parent
GetParentDialog()->OnOK();
}See Also C/C++ API | C++ Classes | Notifications