// Modified by:
// Created: 01/02/97
// RCS-ID: $Id$
-// Copyright: (c) Julian Smart and Markus Holzem
+// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
bool wxControl::MSWCreateControl(const wxChar *classname,
const wxString& label,
const wxPoint& pos,
- const wxSize& size,
- long style)
+ const wxSize& size)
{
WXDWORD exstyle;
- WXDWORD msStyle = MSWGetStyle(style, &exstyle);
+ WXDWORD msStyle = MSWGetStyle(GetWindowStyle(), &exstyle);
return MSWCreateControl(classname, msStyle, pos, size, label, exstyle);
}
InheritAttributes();
// set the size now if no initial size specified
- if ( w == 0 || h == 0 )
+ if ( w <= 0 || h <= 0 )
{
SetBestSize(size);
}