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
|
||||
{
|
||||
public:
|
||||
wxUxThemeHandle(wxWindow *win, const wchar_t *classes)
|
||||
wxUxThemeHandle(const wxWindow *win, const wchar_t *classes)
|
||||
{
|
||||
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; }
|
||||
|
Reference in New Issue
Block a user