groupbox has clickable client area (fixes issue #1309)

git-svn-id: trunk@7964 -
This commit is contained in:
vincents 2005-10-14 08:02:56 +00:00
parent 82fb7d047d
commit 59f061c29a

View File

@ -1198,10 +1198,17 @@ Begin
end;
WM_NCHITTEST:
begin
if (lWinControl <> nil) and (lWinControl.FCompStyle = csHintWindow) then
begin
LMessage.Result := HTTRANSPARENT;
WinProcess := false;
if (lWinControl <> nil) then begin
if (lWinControl.FCompStyle = csHintWindow) then
begin
LMessage.Result := HTTRANSPARENT;
WinProcess := false;
end
else if (lWinControl is TCustomGroupBox) then
begin
LMessage.Result := HTCLIENT;
WinProcess := false;
end;
end;
end;
WM_NCLBUTTONDOWN: