,rsName
))
return FALSE;
- SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE));
wxModelessWindows.Append(this);
return TRUE;
} // end of wxFrame::Create
);
}
-// generate an artificial resize event
-void wxFrame::SendSizeEvent()
-{
- if (!m_bIconized)
- {
- RECTL vRect = wxGetWindowRect(GetHwnd());
-
- (void)::WinPostMsg( m_hFrame
- ,WM_SIZE
- ,MPFROM2SHORT(vRect.xRight - vRect.xLeft, vRect.yTop - vRect.yBottom)
- ,MPFROM2SHORT(vRect.xRight - vRect.xLeft, vRect.yTop - vRect.yBottom)
- );
- }
-}
-
#if wxUSE_STATUSBAR
wxStatusBar* wxFrame::OnCreateStatusBar(
int nNumber
if( !pStatusBar )
return NULL;
+ wxClientDC vDC(pStatusBar);
+ int nY;
+
+ //
+ // Set the height according to the font and the border size
+ //
+ vDC.SetFont(pStatusBar->GetFont()); // Screws up the menues for some reason
+ vDC.GetTextExtent( "X"
+ ,NULL
+ ,&nY
+ );
+
+ int nHeight = ((11 * nY) / 10 + 2 * pStatusBar->GetBorderY());
+
+ pStatusBar->SetSize( -1
+ ,-1
+ ,-1
+ ,nHeight
+ );
+
::WinSetParent( pStatusBar->GetHWND()
,m_hFrame
,FALSE
//
// Icons in PM are the same as "pointers"
//
+ const wxIcon& vIcon = GetIcon();
HPOINTER hIcon;
- if (m_icon.Ok())
+ if (vIcon.Ok())
hIcon = (HPOINTER)::WinSendMsg(m_hFrame, WM_QUERYICON, 0L, 0L);
else
hIcon = (HPOINTER)m_hDefaultIcon;
PositionToolBar();
#endif // wxUSE_TOOLBAR
- wxSizeEvent vEvent( wxSize( nX
- ,nY
- )
- ,m_windowId
- );
-
- vEvent.SetEventObject(this);
- bProcessed = GetEventHandler()->ProcessEvent(vEvent);
- AlterChildPos();
+ bProcessed = wxWindow::HandleSize( nX
+ ,nY
+ ,nId
+ );
}
return bProcessed;
} // end of wxFrame::HandleSize
case CM_QUERYDRAGIMAGE:
{
+ const wxIcon& vIcon = GetIcon();
HPOINTER hIcon;
- if (m_icon.Ok())
+ if (vIcon.Ok())
hIcon = (HPOINTER)::WinSendMsg(GetHWND(), WM_QUERYICON, 0L, 0L);
else
hIcon = (HPOINTER)m_hDefaultIcon;