A fix for flicker when the top-level window is disabled or enabled (e.g. by modal dialogs).
Achieved by using IsThisEnabled to determine the visual disabled state and thus requiring no refresh on top-level window enabling/disabling. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2055,7 +2055,7 @@ bool wxTextCtrl::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
|
||||
|
||||
WXHBRUSH wxTextCtrl::MSWControlColor(WXHDC hDC, WXHWND hWnd)
|
||||
{
|
||||
if ( !IsEnabled() && !HasFlag(wxTE_MULTILINE) )
|
||||
if ( !IsThisEnabled() && !HasFlag(wxTE_MULTILINE) )
|
||||
return MSWControlColorDisabled(hDC);
|
||||
|
||||
return wxTextCtrlBase::MSWControlColor(hDC, hWnd);
|
||||
|
Reference in New Issue
Block a user