very minor cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -452,7 +452,7 @@ void MyFrame::OnSetStatusFields(wxCommandEvent& WXUNUSED(event))
|
|||||||
|
|
||||||
void MyFrame::OnUpdateStatusBarToggle(wxUpdateUIEvent& event)
|
void MyFrame::OnUpdateStatusBarToggle(wxUpdateUIEvent& event)
|
||||||
{
|
{
|
||||||
event.Check(GetStatusBar() != 0);
|
event.Check(GetStatusBar() != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyFrame::OnStatusBarToggle(wxCommandEvent& WXUNUSED(event))
|
void MyFrame::OnStatusBarToggle(wxCommandEvent& WXUNUSED(event))
|
||||||
@@ -461,17 +461,12 @@ void MyFrame::OnStatusBarToggle(wxCommandEvent& WXUNUSED(event))
|
|||||||
if ( statbarOld )
|
if ( statbarOld )
|
||||||
{
|
{
|
||||||
statbarOld->Hide();
|
statbarOld->Hide();
|
||||||
SetStatusBar(0);
|
SetStatusBar(NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DoCreateStatusBar(m_statbarKind);
|
DoCreateStatusBar(m_statbarKind);
|
||||||
}
|
}
|
||||||
#ifdef __WXMSW__
|
|
||||||
// The following is a kludge suggested by Vadim Zeitlin (one of the wxWidgets
|
|
||||||
// authors) while we look for a proper fix..
|
|
||||||
// SendSizeEvent();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyFrame::OnRecreateStatusBar(wxCommandEvent& WXUNUSED(event))
|
void MyFrame::OnRecreateStatusBar(wxCommandEvent& WXUNUSED(event))
|
||||||
|
Reference in New Issue
Block a user