谢谢您的反馈。
禁用鼠标滚轮,需要您重写flexgrid的WndProc消息处理,在里面重新定义不接收滚轮消息。
- public class NoMouseWheelGrid : C1.Win.C1FlexGrid.C1FlexGrid
- {
- override protected void WndProc(ref Message m)
- {
- // ignore all mouse wheel messages
- const int WM_MOUSEWHEEL = 0x020a;
- if (m.Msg == WM_MOUSEWHEEL)
- {
- return;
- }
- // process other messages as usual
- base.WndProc(ref m);
- }
- }
复制代码 |