From 62847198aa015d2b2578d31c18049ada6cd9ef60 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sat, 6 Sep 2003 16:59:30 +0000 Subject: [PATCH] fixed disabled caption buttons bug svn path=/trunk/; revision=6001 --- reactos/lib/user32/windows/defwnd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/lib/user32/windows/defwnd.c b/reactos/lib/user32/windows/defwnd.c index 72c786ca46a..f4d7fbfc29e 100644 --- a/reactos/lib/user32/windows/defwnd.c +++ b/reactos/lib/user32/windows/defwnd.c @@ -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);