Revamped border handling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -93,16 +93,12 @@ bool wxControl::MSWCreateControl(const wxChar *classname,
|
||||
const wxString& label,
|
||||
WXDWORD exstyle)
|
||||
{
|
||||
// want3D tells us whether or not the style specified a 3D border.
|
||||
// If so, under WIN16 we can use Ctl3D to give it an appropriate style.
|
||||
// Sometimes want3D is used to indicate that the non-extended style should have
|
||||
// WS_BORDER.
|
||||
bool want3D = TRUE;
|
||||
|
||||
// if no extended style given, determine it ourselves
|
||||
if ( exstyle == (WXDWORD)-1 )
|
||||
{
|
||||
exstyle = Determine3DEffects(WS_EX_CLIENTEDGE, &want3D);
|
||||
// exstyle = Determine3DEffects(WS_EX_CLIENTEDGE, &want3D);
|
||||
exstyle = 0;
|
||||
(void) MSWGetStyle(GetWindowStyle(), & exstyle) ;
|
||||
}
|
||||
|
||||
// all controls should have this style
|
||||
|
Reference in New Issue
Block a user