removed style parameter from MSWCreateToolbar(), it is unneeded

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-01-10 23:23:49 +00:00
parent eb199c515b
commit 278c927dd9
2 changed files with 6 additions and 8 deletions

View File

@@ -76,8 +76,8 @@ protected:
// common part of all ctors // common part of all ctors
void Init(); void Init();
// create the toolbar control // create the native toolbar control
bool MSWCreateToolbar(const wxPoint& pos, const wxSize& size, long style); bool MSWCreateToolbar(const wxPoint& pos, const wxSize& size);
// recreate the control completely // recreate the control completely
void Recreate(); void Recreate();

View File

@@ -238,7 +238,7 @@ bool wxToolBar::Create(wxWindow *parent,
return FALSE; return FALSE;
// MSW-specific initialisation // MSW-specific initialisation
if ( !MSWCreateToolbar(pos, size, style) ) if ( !MSWCreateToolbar(pos, size) )
return FALSE; return FALSE;
// set up the colors and fonts // set up the colors and fonts
@@ -248,11 +248,9 @@ bool wxToolBar::Create(wxWindow *parent,
return TRUE; return TRUE;
} }
bool wxToolBar::MSWCreateToolbar(const wxPoint& pos, bool wxToolBar::MSWCreateToolbar(const wxPoint& pos, const wxSize& size)
const wxSize& size,
long style)
{ {
if ( !MSWCreateControl(TOOLBARCLASSNAME, _T(""), pos, size, style) ) if ( !MSWCreateControl(TOOLBARCLASSNAME, _T(""), pos, size) )
return FALSE; return FALSE;
// toolbar-specific post initialisation // toolbar-specific post initialisation
@@ -276,7 +274,7 @@ void wxToolBar::Recreate()
UnsubclassWin(); UnsubclassWin();
if ( !MSWCreateToolbar(pos, size, GetWindowStyle()) ) if ( !MSWCreateToolbar(pos, size) )
{ {
// what can we do? // what can we do?
wxFAIL_MSG( _T("recreating the toolbar failed") ); wxFAIL_MSG( _T("recreating the toolbar failed") );