git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16063
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
long style,
const wxString &name )
{
long style,
const wxString &name )
{
- bool rt = wxTopLevelWindow::Create(parent, id, title, pos, sizeOrig,
+ bool rt = wxTopLevelWindow::Create(parent, id, title, pos, sizeOrig,
style, name);
m_insertCallback = (wxInsertChildFunction) wxInsertChildInFrame;
return rt;
style, name);
m_insertCallback = (wxInsertChildFunction) wxInsertChildInFrame;
return rt;
void wxFrame::DoGetClientSize( int *width, int *height ) const
{
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
void wxFrame::DoGetClientSize( int *width, int *height ) const
{
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
wxTopLevelWindow::DoGetClientSize( width, height );
if (height)
wxTopLevelWindow::DoGetClientSize( width, height );
if (height)
#if wxUSE_STATUSBAR
// status bar
#if wxUSE_STATUSBAR
// status bar
- if (m_frameStatusBar && m_frameStatusBar->IsShown())
+ if (m_frameStatusBar && m_frameStatusBar->IsShown())
(*height) -= wxSTATUS_HEIGHT;
#endif // wxUSE_STATUSBAR
(*height) -= wxSTATUS_HEIGHT;
#endif // wxUSE_STATUSBAR
ww = m_width - 2*m_miniEdge;
hh = m_toolBarDetached ? wxPLACE_HOLDER
: m_frameToolBar->m_height;
ww = m_width - 2*m_miniEdge;
hh = m_toolBarDetached ? wxPLACE_HOLDER
: m_frameToolBar->m_height;
client_area_y_offset += hh;
}
client_area_y_offset += hh;
}
}
#endif // wxUSE_STATUSBAR
}
#endif // wxUSE_STATUSBAR
// send size event to frame
wxSizeEvent event( wxSize(m_width,m_height), GetId() );
// send size event to frame
wxSizeEvent event( wxSize(m_width,m_height), GetId() );
long style,
const wxString &name )
{
long style,
const wxString &name )
{
- bool rt = wxTopLevelWindow::Create(parent, id, title, pos, sizeOrig,
+ bool rt = wxTopLevelWindow::Create(parent, id, title, pos, sizeOrig,
style, name);
m_insertCallback = (wxInsertChildFunction) wxInsertChildInFrame;
return rt;
style, name);
m_insertCallback = (wxInsertChildFunction) wxInsertChildInFrame;
return rt;
void wxFrame::DoGetClientSize( int *width, int *height ) const
{
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
void wxFrame::DoGetClientSize( int *width, int *height ) const
{
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
wxTopLevelWindow::DoGetClientSize( width, height );
if (height)
wxTopLevelWindow::DoGetClientSize( width, height );
if (height)
#if wxUSE_STATUSBAR
// status bar
#if wxUSE_STATUSBAR
// status bar
- if (m_frameStatusBar && m_frameStatusBar->IsShown())
+ if (m_frameStatusBar && m_frameStatusBar->IsShown())
(*height) -= wxSTATUS_HEIGHT;
#endif // wxUSE_STATUSBAR
(*height) -= wxSTATUS_HEIGHT;
#endif // wxUSE_STATUSBAR
ww = m_width - 2*m_miniEdge;
hh = m_toolBarDetached ? wxPLACE_HOLDER
: m_frameToolBar->m_height;
ww = m_width - 2*m_miniEdge;
hh = m_toolBarDetached ? wxPLACE_HOLDER
: m_frameToolBar->m_height;
client_area_y_offset += hh;
}
client_area_y_offset += hh;
}
}
#endif // wxUSE_STATUSBAR
}
#endif // wxUSE_STATUSBAR
// send size event to frame
wxSizeEvent event( wxSize(m_width,m_height), GetId() );
// send size event to frame
wxSizeEvent event( wxSize(m_width,m_height), GetId() );