69,373
社区成员
发帖
与我相关
我的任务
分享
LRESULT CALLBACK WndProc( HWND hWnd, // 窗口的句柄
UINT uMsg, // 窗口的消息
WPARAM wParam, // 附加的消息内容
LPARAM lParam) // 附加的消息内容
{
switch (uMsg) // 检查Windows消息
{
case 0x020A:/* WM_MOUSEWHEEL*/ //WM_MOUSEWHEEL鼠标滚动
{
if(wParam == 0x00780000)
MouseWheelUp();
if(wParam == 0xff880000)
MouseWheelDown();
break;
}
//其他的我就不写了
}
return DefWindowProc(hWnd,uMsg,wParam,lParam);
}
1500:#if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
1501:#define WM_MOUSEWHEEL 0x020A
1502:#define WM_MOUSELAST 0x020A
1503:#else
1504:#define WM_MOUSELAST 0x0209
1505:#endif /* if (_WIN32_WINNT < 0x0400) */