Capturing mouse wheel events

  • Thread starter Thread starter Evgeny Zoldin
  • Start date Start date
E

Evgeny Zoldin

Hi, ALL

Does anybody know how to capture mouse wheel events in C# occured on the
control that natively does not suppot them (e.g. MS Flex Grid)? I have code
hooks windows messages in VB6. I've translated it into C#, but it does not
work :-(

Any another idea?

Thanks
Evgueny
 
Firstly porting from VB6 to C# is not so good, a rewerite is better due to
the fast differences in the two languages ... not sure about the mouse
scroll though... *scratches his head and starts googling*
 
OK, I found code from MSDN, use it. It hooks WH_MOUSE hook, I could refine
it and hooked WHEEL event only, but I couldn't define the direction and
"amount" of wheel rotation because standard mouse hook returns pointer to
MOUSEHOOKSTRUCT which does not contait that info... :-(
 
Back
Top