fixed disabled caption buttons bug

svn path=/trunk/; revision=6001
This commit is contained in:
Thomas Bluemel 2003-09-06 16:59:30 +00:00
parent 81b36f5903
commit 62847198aa

View file

@ -1,4 +1,4 @@
/* $Id: defwnd.c,v 1.77 2003/09/06 14:30:21 weiden Exp $
/* $Id: defwnd.c,v 1.78 2003/09/06 16:59:30 weiden Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS user32.dll
@ -890,6 +890,9 @@ DefWndDoButtonHandle(HWND hWnd, WPARAM wParam)
return;
}
if(!HasBtn)
return;
SetCapture(hWnd);
UserDrawCaptionButton( hWnd, GetWindowDC(hWnd), HasBtn , Btn);