EnableWindow doesn't release the capture of a child window.
This commit is contained in:
parent
16e278c3d5
commit
31c58546c9
|
@ -1747,7 +1747,7 @@ BOOL WINAPI EnableWindow( HWND hwnd, BOOL enable )
|
|||
{
|
||||
SetFocus( 0 ); /* A disabled window can't have the focus */
|
||||
}
|
||||
if ((hwnd == GetCapture()) || IsChild( hwnd, GetCapture() ))
|
||||
if (hwnd == GetCapture())
|
||||
{
|
||||
ReleaseCapture(); /* A disabled window can't capture the mouse */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue