wxUniv build fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3717,7 +3717,10 @@ bool wxWindowMSW::HandleDisplayChange()
|
||||
|
||||
bool wxWindowMSW::HandleCtlColor(WXHBRUSH *brush, WXHDC pDC, WXHWND hWnd)
|
||||
{
|
||||
#if wxUSE_CONTROLS
|
||||
#if !wxUSE_CONTROLS || defined(__WXUNIVERSAL__)
|
||||
wxUnusedVar(pDC);
|
||||
wxUnusedVar(hWnd);
|
||||
#else
|
||||
wxControl *item = wxDynamicCast(FindItemByHWND(hWnd, true), wxControl);
|
||||
|
||||
if ( item )
|
||||
|
@@ -316,7 +316,7 @@ bool wxWindow::DoDrawBackground(wxDC& dc)
|
||||
rect.height = size.y;
|
||||
|
||||
wxWindow * const parent = GetParent();
|
||||
if ( HasTransparentBackground() && parent && parent->ProvidesBackground() )
|
||||
if ( HasTransparentBackground() && parent )
|
||||
{
|
||||
wxASSERT( !IsTopLevel() );
|
||||
|
||||
|
Reference in New Issue
Block a user