take const wxWindow * in wxUxThemeHandle ctor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -202,13 +202,12 @@ private:
|
|||||||
class wxUxThemeHandle
|
class wxUxThemeHandle
|
||||||
{
|
{
|
||||||
public:
|
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 =
|
m_hTheme = engine ? (HTHEME)engine->OpenThemeData(GetHwndOf(win), classes)
|
||||||
engine ? (HTHEME)engine->OpenThemeData((HWND) win->GetHWND(), classes)
|
: NULL;
|
||||||
: NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
operator HTHEME() const { return m_hTheme; }
|
operator HTHEME() const { return m_hTheme; }
|
||||||
|
Reference in New Issue
Block a user