回复 3楼 hyf8285
这个方法应该有效。
也可以在表单的WM_MOUSEWHEEL消息中处理
** form.Init
#DEFINE WM_MOUSEWHEEL 0x020A
BINDEVENT(this.hWnd, WM_MOUSEWHEEL, this, "MyMouseWheel")
**form.MyMouseWheel
LPARAMETERS hWnd, nMsg, wParam, lParam
LOCAL aMouseInfo[1]
IF (AMOUSEOBJ(aMouseInfo, 1) > 0) AND (aMouseInfo[1] == this.Olecontrol1)
IF wParam > 0
IF this.Olecontrol1.TopRow > this.Olecontrol1.FixedRows
this.Olecontrol1.TopRow = this.Olecontrol1.TopRow - 1
ENDIF
ELSE
this.Olecontrol1.TopRow = this.Olecontrol1.TopRow + 1
ENDIF
ENDIF