Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

How to disable mousewheel message to CSpinCtrlButton in MFC?

$
0
0

Hi,

I have placed spin control button on my form and made a CEdit widow as a buddy for that Spin control. My parent form has a Vertical scroll bar. Suppose my cursor is on spin control and if i do mouse wheel operation then i don't want to change the value in spin control, instead it should scroll my form window.

I tried overriding WM_MOUSEWHEEL message on CSpinCtrlButton but it seems CSpinCtrlButton  doesn't send WM_MOUSEWHEEL message. I used UDN_DELTAPOS notify message to check some action on CSpinCtrlButton.

Please can some one guide me how to handle mouse wheel operation on spin control? 

Thanks,

Yogis293


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>