mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 23:30:22 +02:00
win32: send LM_HITTEST to LCL
git-svn-id: trunk@30056 -
This commit is contained in:
parent
c0594332b5
commit
32fe9f12d1
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user