Further border style corrections.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -98,6 +98,12 @@ bool wxStaticBitmap::Create(wxWindow *parent,
|
|||||||
long style,
|
long style,
|
||||||
const wxString& name)
|
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) )
|
if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
@@ -1034,6 +1034,7 @@ WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const
|
|||||||
// Windows XP. Instead we get the appropriate style for the theme.
|
// Windows XP. Instead we get the appropriate style for the theme.
|
||||||
|
|
||||||
if (border == wxBORDER_DEFAULT && wxTheApp->GetAuto3D() &&
|
if (border == wxBORDER_DEFAULT && wxTheApp->GetAuto3D() &&
|
||||||
|
IsKindOf(CLASSINFO(wxControl)) &&
|
||||||
GetParent() && (GetParent()->IsKindOf(CLASSINFO(wxPanel)) ||
|
GetParent() && (GetParent()->IsKindOf(CLASSINFO(wxPanel)) ||
|
||||||
GetParent()->IsKindOf(CLASSINFO(wxDialog))) &&
|
GetParent()->IsKindOf(CLASSINFO(wxDialog))) &&
|
||||||
((GetParent()->GetWindowStyleFlag() & wxUSER_COLOURS) != wxUSER_COLOURS))
|
((GetParent()->GetWindowStyleFlag() & wxUSER_COLOURS) != wxUSER_COLOURS))
|
||||||
|
Reference in New Issue
Block a user