if ( flags & wxCLIP_SIBLINGS )
style |= WS_CLIPSIBLINGS;
- if ( (flags & wxBORDER_MASK) != wxBORDER_NONE )
+ wxBorder border = (wxBorder)(flags & wxBORDER_MASK);
+ if ( border != wxBORDER_NONE && border != wxBORDER_DEFAULT )
style |= WS_BORDER;
// now deal with ext style if the caller wants it
case wxBORDER_NONE:
case wxBORDER_SIMPLE:
+ case wxBORDER_DEFAULT:
break;
case wxBORDER_STATIC:
*exstyle |= WS_EX_WINDOWEDGE;
break;
- case wxBORDER_DEFAULT:
case wxBORDER_SUNKEN:
*exstyle |= WS_EX_CLIENTEDGE;
break;
break;
}
- if ( i == 3 )
- {
- // how did it happen? maybe OnSize() handler does something really
- // strange in this class?
- wxFAIL_MSG( _T("logic error in DoSetClientSize") );
-
- break;
- }
-
int widthClient = width,
heightClient = height;
{
POINT pt;
GetCursorPos( & pt );
+
return wxPoint(pt.x, pt.y);
}