16,722
社区成员




'重载WndProc
Protected Overrides Sub WndProc(ByRef m As Message)
If &H20A = m.Msg Then
' 滚轮事件
If m.WParam.ToInt32 >> 16 > 0 Then
debug.Print("向上滚")
Else
debug.Print("向下滚")
End If
MyBase.WndProc(m)
Else
MyBase.WndProc(m)
End If
End Sub
var up = $('up'), down = $('down'), log;
[up, down].each(function(arrow) {
arrow.setStyle('opacity', .1);
});
document.addEvent('mousewheel', function(event) {
event = new Event(event);
/* Mousewheel UP */
if (event.wheel > 0) {
up.setStyle('opacity', 1);
down.setStyle('opacity', .1);
log = 'up';
}
/* Mousewheel DOWN*/
else if (event.wheel < 0) {
up.setStyle('opacity', .1);
down.setStyle('opacity', 1);
log = 'down';
}
$('log').setHTML(log);
var cls = function() {
[up, down].each(function(arrow) {
arrow.setStyle('opacity', .1);
});
}.delay(100);
});