Home > Software engineering > After the CtreeCtrl hide the scroll bar, how to implement the mouse wheel rolling function
After the CtreeCtrl hide the scroll bar, how to implement the mouse wheel rolling function
Time:09-24
Excuse me, CtreeCtrl controls, hide the scroll bar, how to realize the mouse wheel rolling function, many thanks!
One, to Scroll controls attribute is set to False, what all can't mobile controls node
Second, the control property Scroll is set to True, the function m_tree. EnableScrollBarCtrl (1, FALSE);//hidden scrollbar Can be hidden by the scroll bar, but the mouse in the control area, rolling wheel, unable to trigger the dialog onm ouseWheel message,
CodePudding user response:
"The mouse on the control area"?
CodePudding user response:
SPY++ see if any WM_MOUSEWHEEL message? Is there a focus to control?