Convert this code lazarus / 31-LCL ---------------------------------------------------------------------- cappe · 2015-11-02 12:05 I'm new to Lazarus, I would like to convert this code Windows oriented, cross-platform lazarus code procedure TForm1.WndProc(var Msg: TMessage); var aPoint : TPoint; begin   if (Msg.Msg = WM_LBUTTONDOWN) or      ((Msg.Msg = WM_PARENTNOTIFY) and (Msg.WParam = WM_LBUTTONDOWN)) or      (Msg.Msg = WM_NCLBUTTONDOWN) then    begin    end;   inherited; end; Thank you ---------------------------------------------------------------------- wp · 2015-11-02 12:42 I'm not the expert in these internal things, so I may be wrong, but what I've seen is replace the WM_XXX by LM_XXX and the TMessage to TLMessage.add LMessages to uses.This way your WndProc at least passes the compiler. ---------------------------------------------------------------------- cappe · 2015-11-02 16:04 It works, I miss this part if it works with Lazarus.        aPoint.x := (Msg.LParam and $FFFF);        aPoint.y := ((Msg.LParam shr 16) and $FFFF); I wanted to know where I could find information on messages in Lazarus.