Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-11

wrong WM_HSCROLL

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Darek Mazur

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
      ;
Win32Def.ScrollWindow(Window,Position - NewPos,0,nil,@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

Reply by email

Micha Nelissen
to Darek Mazur
Darek Mazur wrote 18 lines
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 ; Win32Def.ScrollWindow(Window,Position - NewPos,0,nil,@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

Do you want to handle CN_HSCROLL? What is the purpose?

Micha.

Reply by email

Micha Nelissen
to Darek Mazur: HI I've tested tScrollBar and I notice that HScroll is wrong in WIN32CALLBACK.INC musn't…
Darek Mazur wrote 10 lines
>Do you want to handle CN_HSCROLL? What is the purpose? > >Micha. > I have form divide to two panel, and only one must be scrolled now in tScrollBar is CNHScroll whitch invoke fonscroll, but this not work, because handle of WM_HSCROLL is bad, as I say before

I have removed the interface independant code. I think the code should be moved to IntSendMessage3 in win32object.inc, investigating...

Micha.

Reply by email

Darek Mazur
to Darek Mazur: HI I've tested tScrollBar and I notice that HScroll is wrong in WIN32CALLBACK.INC musn't…
Do you want to handle CN_HSCROLL? What is the purpose? Micha.

I have form divide to two panel, and only one must be scrolled

now in tScrollBar is CNHScroll whitch invoke fonscroll, but this not work, because handle of WM_HSCROLL is bad, as I say before

Darek

_________________________________________________________________

To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email