mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 17:00:31 +02:00
lcl: don't use SendMessage(Handle) - use perform to prevent handle creation
git-svn-id: trunk@25257 -
This commit is contained in:
parent
591e6c3709
commit
9f0a3a69df
@ -2210,7 +2210,7 @@ begin
|
||||
while not FLastFocusedControl.ContainsControl(Control) do
|
||||
begin
|
||||
LastState := SaveFocusState;
|
||||
SendMessage(FLastFocusedControl.Handle, CM_EXIT, 0, 0);
|
||||
FLastFocusedControl.Perform(CM_EXIT, 0, 0);
|
||||
if SaveFocusState <> LastState then
|
||||
Exit;
|
||||
FLastFocusedControl := FLastFocusedControl.Parent;
|
||||
@ -2220,7 +2220,7 @@ begin
|
||||
begin
|
||||
FLastFocusedControl := NextChildControl(FLastFocusedControl, Control);
|
||||
LastState := SaveFocusState;
|
||||
SendMessage(FLastFocusedControl.Handle, CM_ENTER, 0, 0);
|
||||
FLastFocusedControl.Perform(CM_ENTER, 0, 0);
|
||||
if SaveFocusState <> LastState then
|
||||
Exit;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user