Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ON_WM_MOUSEWHEEL

Status
Not open for further replies.

shetlandbob

Programmer
Mar 9, 2004
528
GB
Hi,

I can capture the mouse wheel event on my dialog application except when the mouse focus is in my list control. This is pretty much exactly the opposite of what I wanted.

Any one have any idea why my list control doesn't support the mouse wheel event capture?
 
you should catch mouse whell of your list, not of your dialog. However list is a child control, it is another wiindow than your dialog. For that purposes you may subclass the list.

Ion Filipski
1c.bmp
 
thats what I thought, but having trouble figuring out how to capture that event?
 
Ok, I've got it. thanks for the help anyway

for info:
My ListBox is my own generated Class (base was CListBox, unsurprisingly!!) as I wanted to colour the entries independently, and so I get the mouse wheel event from the message map in the myCListBox class.

thats probably about as clear as mud!!

If it sounds like the wrong way to do things, then please let me know!! but it appears to work!!
 
>but it appears to work!!

Good. If it aint broken, don't fix it.

/Per

"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top