// Modified by:
// Created: 04/01/98
// RCS-ID: $Id$
-// Copyright: (c) Julian Smart and Markus Holzem
-// Licence: wxWindows license
+// Copyright: (c) Julian Smart
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ===========================================================================
long style,
const wxString& name)
{
+ // default border for this control is none
+ if ( (style & wxBORDER_MASK) == wxBORDER_DEFAULT )
+ {
+ style |= wxBORDER_NONE;
+ }
+
if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) )
return FALSE;
#else // Win16
_T("BUTTON"),
#endif // Win32/16
- _T(""), pos, size, style) )
+ _T(""), pos, size) )
{
// control creation failed
return FALSE;