fixed IMPLEMENT_APP to work even if compiled with --with-themes and win32 or gtk themes are not compiled in

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2006-09-29 12:43:59 +00:00
parent 74be7431f3
commit ee92941afc
2 changed files with 47 additions and 4 deletions

View File

@@ -641,9 +641,12 @@ public:
#ifdef __WXUNIVERSAL__
#include "wx/univ/theme.h"
#define IMPLEMENT_WX_THEME_SUPPORT \
WX_USE_THEME(win32); \
WX_USE_THEME(gtk);
#ifdef wxUNIV_DEFAULT_THEME
#define IMPLEMENT_WX_THEME_SUPPORT \
WX_USE_THEME(wxUNIV_DEFAULT_THEME);
#else
#define IMPLEMENT_WX_THEME_SUPPORT
#endif
#else
#define IMPLEMENT_WX_THEME_SUPPORT
#endif