Implementing some more controls and an MDI child frame fix for wxFrame.

Also include the textbuf class in the make.  New module definition file.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2001-11-16 18:42:18 +00:00
parent fb49f3b32e
commit 0cf6acbf26
6 changed files with 774 additions and 421 deletions

View File

@@ -108,6 +108,7 @@ void wxFrame::Init()
m_nFsStatusBarHeight = 0;
m_nFsToolBarHeight = 0;
m_bFsIsMaximized = FALSE;
m_bWasMinimized = FALSE;
m_bFsIsShowing = FALSE;
m_bIsShown = FALSE;
m_pWinLastFocused = (wxWindow *)NULL;
@@ -1328,10 +1329,30 @@ void wxFrame::IconizeChildFrames(
pNode = pNode->GetNext() )
{
wxWindow* pWin = pNode->GetData();
wxFrame* pFrame = wxDynamicCast(pWin, wxFrame);
if (pWin->IsKindOf(CLASSINFO(wxFrame)) )
if ( pFrame
#if wxUSE_MDI_ARCHITECTURE
&& !wxDynamicCast(pFrame, wxMDIChildFrame)
#endif // wxUSE_MDI_ARCHITECTURE
)
{
((wxFrame *)pWin)->Iconize(bIconize);
//
// We don't want to restore the child frames which had been
// iconized even before we were iconized, so save the child frame
// status when iconizing the parent frame and check it when
// restoring it.
//
if (bIconize)
{
pFrame->m_bWasMinimized = pFrame->IsIconized();
}
//
// This test works for both iconizing and restoring
//
if (!pFrame->m_bWasMinimized)
pFrame->Iconize(bIconize);
}
}
} // end of wxFrame::IconizeChildFrames