* Cleanup WndProc

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2612 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
blikblum
2012-12-31 14:06:40 +00:00
parent 5cb0efece9
commit d83eb2450c

View File

@ -23830,11 +23830,10 @@ begin
if not (csDesigning in ComponentState) and if not (csDesigning in ComponentState) and
((Message.Msg = LM_LBUTTONDOWN) or (Message.Msg = LM_LBUTTONDBLCLK)) then ((Message.Msg = LM_LBUTTONDOWN) or (Message.Msg = LM_LBUTTONDBLCLK)) then
begin begin
if (DragMode = dmAutomatic) and (DragKind = dkDrag) then Handled := (DragMode = dmAutomatic) and (DragKind = dkDrag);
if Handled then
begin begin
if IsControlMouseMsg(TLMMouse(Message)) then if not IsControlMouseMsg(TLMMouse(Message)) then
Handled := True;
if not Handled then
begin begin
//lclheader //lclheader
//let the header handle the message here //let the header handle the message here
@ -23842,7 +23841,6 @@ begin
FHeader.HandleMessage(Message); FHeader.HandleMessage(Message);
ControlState := ControlState + [csLButtonDown]; ControlState := ControlState + [csLButtonDown];
Dispatch(Message); // overrides TControl's BeginDrag Dispatch(Message); // overrides TControl's BeginDrag
Handled := True;
end; end;
end; end;
end; end;
@ -23851,13 +23849,8 @@ begin
Handled := FHeader.HandleMessage(Message); Handled := FHeader.HandleMessage(Message);
if not Handled then if not Handled then
begin
//lcl: probably not necessary
//if (Message.Msg in [WM_NCLBUTTONDOWN, WM_NCRBUTTONDOWN, WM_NCMBUTTONDOWN]) and not Focused and CanFocus then
// SetFocus;
inherited; inherited;
end; end;
end;
end; end;
//---------------------------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------------------------