projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pop event handler from wxDVC edit control before destroying it.
[wxWidgets.git]
/
include
/
wx
/
msw
/
uxtheme.h
diff --git
a/include/wx/msw/uxtheme.h
b/include/wx/msw/uxtheme.h
index 7bc6d0ce720e5e4d53329c6fba3c4540f5ab73ca..6424fc6118606889db825b6a55f9fb8329a70985 100644
(file)
--- a/
include/wx/msw/uxtheme.h
+++ b/
include/wx/msw/uxtheme.h
@@
-14,7
+14,7
@@
#include "wx/defs.h"
#include "wx/defs.h"
-#include "wx/msw/
wrapwin.h"
+#include "wx/msw/
private.h" // we use GetHwndOf()
#include "wx/msw/uxthemep.h"
typedef HTHEME (__stdcall *PFNWXUOPENTHEMEDATA)(HWND, const wchar_t *);
#include "wx/msw/uxthemep.h"
typedef HTHEME (__stdcall *PFNWXUOPENTHEMEDATA)(HWND, const wchar_t *);
@@
-79,7
+79,7
@@
typedef HRESULT (__stdcall *PFNWXUENABLETHEMING)(BOOL);
#define wxUX_THEME_DECLARE(type, func) type func(...) { return 0; }
#endif
#define wxUX_THEME_DECLARE(type, func) type func(...) { return 0; }
#endif
-class WXDLL
EXPORT
wxUxThemeEngine
+class WXDLL
IMPEXP_CORE
wxUxThemeEngine
{
public:
// get the theme engine or NULL if themes are not available
{
public:
// get the theme engine or NULL if themes are not available
@@
-168,7
+168,7
@@
private:
friend class wxUxThemeModule;
#endif // wxUSE_UXTHEME
friend class wxUxThemeModule;
#endif // wxUSE_UXTHEME
- DECLARE_NO_COPY_CLASS(wxUxThemeEngine)
+ wxDECLARE_NO_COPY_CLASS(wxUxThemeEngine);
};
#if wxUSE_UXTHEME
};
#if wxUSE_UXTHEME
@@
-202,13
+202,12
@@
private:
class wxUxThemeHandle
{
public:
class wxUxThemeHandle
{
public:
- wxUxThemeHandle(wxWindow *win, const wchar_t *classes)
+ wxUxThemeHandle(
const
wxWindow *win, const wchar_t *classes)
{
wxUxThemeEngine *engine = wxUxThemeEngine::Get();
{
wxUxThemeEngine *engine = wxUxThemeEngine::Get();
- m_hTheme =
- engine ? (HTHEME)engine->OpenThemeData((HWND) win->GetHWND(), classes)
- : NULL;
+ m_hTheme = engine ? (HTHEME)engine->OpenThemeData(GetHwndOf(win), classes)
+ : NULL;
}
operator HTHEME() const { return m_hTheme; }
}
operator HTHEME() const { return m_hTheme; }
@@
-224,7
+223,7
@@
public:
private:
HTHEME m_hTheme;
private:
HTHEME m_hTheme;
- DECLARE_NO_COPY_CLASS(wxUxThemeHandle)
+ wxDECLARE_NO_COPY_CLASS(wxUxThemeHandle);
};
#endif // _WX_UXTHEME_H_
};
#endif // _WX_UXTHEME_H_