-
- bool bActive = false;
- if (pParentFrame->GetActiveChild() == this)
- {
- pParentFrame->SetActiveChild(NULL);
- pParentFrame->SetChildMenuBar(NULL);
- bActive = true;
- }
-
- size_t pos, page_count = pClientWindow->GetPageCount();
- for (pos = 0; pos < page_count; pos++)
- {
- if (pClientWindow->GetPage(pos) == this)
- return pClientWindow->DeletePage(pos);
- }
-
- return false;
-}