don't disable top level windows recursively
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -502,6 +502,12 @@ bool wxWindowMSW::Enable(bool enable)
|
|||||||
if ( hWnd )
|
if ( hWnd )
|
||||||
::EnableWindow(hWnd, (BOOL)enable);
|
::EnableWindow(hWnd, (BOOL)enable);
|
||||||
|
|
||||||
|
// the logic below doesn't apply to the top level windows -- otherwise
|
||||||
|
// showing a modal dialog would result in total greying out (and ungreying
|
||||||
|
// out later) of everything which would be really ugly
|
||||||
|
if ( IsTopLevel() )
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
// when the parent is disabled, all of its children should be disabled as
|
// when the parent is disabled, all of its children should be disabled as
|
||||||
// well but when it is enabled back, only those of the children which
|
// well but when it is enabled back, only those of the children which
|
||||||
// hadn't been already disabled in the beginning should be enabled again,
|
// hadn't been already disabled in the beginning should be enabled again,
|
||||||
|
Reference in New Issue
Block a user