[lazarus] wrong WM_HSCROLL

Darek Mazur darekm at emadar.com
Thu Nov 20 16:37:45 EST 2003


HI
I've tested tScrollBar and I notice that HScroll is wrong
in WIN32CALLBACK.INC musn't call       in:


Function WindowProc(Window: HWnd; Msg: UInt;
  WParam: WParam; LParam: LParam): LResult; stdcall;


 WM_HSCROLL:
    Begin
      PLMsg:=@LMScroll;
   
Win32Def.ScrollWindow(Window,Position - NewPos,0,nil, at R);
    ^^^ in this cause I can't call CNHScroll

this section should be done similary to WM_LBUTTONDOWN:
(call LCL) and rest of code move to STDCTRLS.PP

Darek

    






More information about the Lazarus mailing list