Fix for toolbar workaround (mustn't set flag unless we're in Classic mode
or we get separators showing) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@28586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -53,6 +53,10 @@
|
|||||||
|
|
||||||
#include "wx/msw/private.h"
|
#include "wx/msw/private.h"
|
||||||
|
|
||||||
|
#if wxUSE_UXTHEME
|
||||||
|
#include "wx/msw/uxtheme.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef __TWIN32__
|
#ifndef __TWIN32__
|
||||||
|
|
||||||
#if defined(__WIN95__) && !((defined(__GNUWIN32_OLD__) || defined(__TWIN32__)) && !defined(__CYGWIN10__))
|
#if defined(__WIN95__) && !((defined(__GNUWIN32_OLD__) || defined(__TWIN32__)) && !defined(__CYGWIN10__))
|
||||||
@@ -254,7 +258,11 @@ bool wxToolBar::Create(wxWindow *parent,
|
|||||||
SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
|
SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
|
||||||
|
|
||||||
// workaround for flat toolbar on Windows XP classic style
|
// workaround for flat toolbar on Windows XP classic style
|
||||||
|
#if wxUSE_UXTHEME
|
||||||
if ( style & wxTB_FLAT )
|
if ( style & wxTB_FLAT )
|
||||||
|
{
|
||||||
|
wxUxThemeEngine *p = wxUxThemeEngine::Get();
|
||||||
|
if ( !p || !p->m_pfnIsThemeActive() )
|
||||||
{
|
{
|
||||||
DWORD dwToolbarStyle;
|
DWORD dwToolbarStyle;
|
||||||
|
|
||||||
@@ -266,6 +274,9 @@ bool wxToolBar::Create(wxWindow *parent,
|
|||||||
::SendMessage(GetHwnd(), TB_SETSTYLE, 0, (LPARAM)dwToolbarStyle );
|
::SendMessage(GetHwnd(), TB_SETSTYLE, 0, (LPARAM)dwToolbarStyle );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user