Changeset 17 for trunk/Messg.pas


Ignore:
Timestamp:
Jan 8, 2017, 11:21:02 AM (7 years ago)
Author:
chronos
Message:
  • Fixed: Build under Linux.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Messg.pas

    r9 r17  
    9292  else
    9393  begin
    94     if integer(Msg.LParamHi) >= Top + TitleHeight then
     94    if integer((Msg.LParam shr 16) and $ffff) >= Top + TitleHeight then
    9595      Msg.result := HTCLIENT
    9696    else
     
    100100        begin
    101101          ControlBounds := Controls[i].BoundsRect;
    102           if (integer(Msg.LParamLo) >= Left + ControlBounds.Left) and
    103             (integer(Msg.LParamLo) < Left + ControlBounds.Right) and
    104             (integer(Msg.LParamHi) >= Top + ControlBounds.Top) and
    105             (integer(Msg.LParamHi) < Top + ControlBounds.Bottom) then
     102          if (integer(Msg.LParam and $ffff) >= Left + ControlBounds.Left) and
     103            (integer(Msg.LParam and $ffff) < Left + ControlBounds.Right) and
     104            (integer((Msg.LParam shr 16 ) and $ffff) >= Top + ControlBounds.Top) and
     105            (integer((Msg.LParam shr 16) and $ffff) < Top + ControlBounds.Bottom) then
    106106          begin
    107107            Msg.result := HTCLIENT;
Note: See TracChangeset for help on using the changeset viewer.