Re: Linking mouse scroll button to Scroll bar
From: Yalcomania (yalcinuzun_at_yoyoyazilim.com)
Date: 06/23/04
- Next message: Bob Butler: "Re: MSComm equivalent in .net"
- Previous message: Jack Russell: "MSComm equivalent in .net"
- In reply to: Steve K.: "RE: Linking mouse scroll button to Scroll bar"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Jun 2004 03:33:50 +0300
"Steve K." <SteveK@discussions.microsoft.com> wrote in message
news:FDC6D432-A7C5-471F-B295-CD157DA410C7@microsoft.com...
> One possible solution:
>
> Subclass your form/control. Catch WM_MOUSEWHEEL message and do the
following (you can skip X and Y if you don't need them):
>
> Dim lRotation As Long
> Dim lPosX As Long
> Dim lPosY As Long
>
> lRotation = wParam / 65536
> lPosX = lParam And 65535
> lPosY = lParam / 65536
>
> and add lRotation to the value of the vertical scrollbar manually.
>
> HTH
> Steve K.
>
> "Lakshmi" wrote:
>
> > Hello,
> > Is it possible to associate the mouse scroll button to Scroll bar of Ms
Flex
> > Grid
> >
> > Thanks in advance
> >
> > Regards
> >
> > Mahalakshmi
> >
> >
> >
- Next message: Bob Butler: "Re: MSComm equivalent in .net"
- Previous message: Jack Russell: "MSComm equivalent in .net"
- In reply to: Steve K.: "RE: Linking mouse scroll button to Scroll bar"
- Messages sorted by: [ date ] [ thread ]