win32: send LM_HITTEST to LCL

git-svn-id: trunk@30056 -
This commit is contained in:
paul 2011-03-29 03:08:51 +00:00
parent c0594332b5
commit 32fe9f12d1
2 changed files with 8 additions and 5 deletions

View File

@ -5174,7 +5174,8 @@ begin
LM_KILLFOCUS:
begin
//DebugLn(Format('Trace:[TWinControl.WndPRoc] %s --> _KILLFOCUS', [ClassName]));
if csFocusing in ControlState then begin
if csFocusing in ControlState then
begin
{$IFDEF VerboseFocus}
DebugLn('TWinControl.WndProc LM_KillFocus during focusing ',Name,':',ClassName);
{$ENDIF}
@ -5186,10 +5187,9 @@ begin
LM_NCHITTEST:
begin
inherited WndPRoc(Message);
if (Message.Result = HTTRANSPARENT)
and (ControlAtPos(ScreenToClient(SmallPointToPoint(TLMNCHitTest(Message).Pos)),
False) <> nil)
then Message.Result := HTCLIENT;
if (Message.Result = HTTRANSPARENT) and
Assigned(ControlAtPos(ScreenToClient(SmallPointToPoint(TLMNCHitTest(Message).Pos)), False)) then
Message.Result := HTCLIENT;
Exit;
end;

View File

@ -1864,6 +1864,9 @@ begin
begin
if (lWinControl <> nil) then
begin
LMessage.msg := LM_NCHITTEST;
LMessage.wParam := WParam;
LMessage.lParam := LParam;
if (lWinControl.FCompStyle = csHintWindow) then
begin
LMessage.Result := HTTRANSPARENT;