wxUniv compilation fixes in themed border drawing code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3262,9 +3262,9 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
|
|||||||
{
|
{
|
||||||
rect = *((RECT*)lParam);
|
rect = *((RECT*)lParam);
|
||||||
}
|
}
|
||||||
wxUxThemeHandle hTheme(this, L"EDIT");
|
wxUxThemeHandle hTheme((wxWindow *)this, L"EDIT");
|
||||||
RECT rcClient = { 0, 0, 0, 0 };
|
RECT rcClient = { 0, 0, 0, 0 };
|
||||||
wxClientDC dc(this);
|
wxClientDC dc((wxWindow *)this);
|
||||||
|
|
||||||
if (theme->GetThemeBackgroundContentRect(
|
if (theme->GetThemeBackgroundContentRect(
|
||||||
hTheme, GetHdcOf(dc), EP_EDITTEXT, ETS_NORMAL,
|
hTheme, GetHdcOf(dc), EP_EDITTEXT, ETS_NORMAL,
|
||||||
@@ -3290,8 +3290,8 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
|
|||||||
rc.result = MSWDefWindowProc(message, wParam, lParam);
|
rc.result = MSWDefWindowProc(message, wParam, lParam);
|
||||||
processed = true;
|
processed = true;
|
||||||
|
|
||||||
wxUxThemeHandle hTheme(this, L"EDIT");
|
wxUxThemeHandle hTheme((wxWindow *)this, L"EDIT");
|
||||||
wxWindowDC dc(this);
|
wxWindowDC dc((wxWindow *)this);
|
||||||
|
|
||||||
// Clip the DC so that you only draw on the non-client area
|
// Clip the DC so that you only draw on the non-client area
|
||||||
RECT rcBorder;
|
RECT rcBorder;
|
||||||
|
Reference in New Issue
Block a user