社区
C语言
帖子详情
为什么在XP里面不能用WM_MOUSEWHEEL消息?
feiyingw
2003-09-30 09:27:10
大侠们:
为什么在SDK程序中,我在使用这个消息时,会报错,
好象根本没有这个消息的定义一样,
那么如果我要在XP里面有鼠标轮的话,我要便用CASE ……(什么消息?)
请各位指教!!!!
...全文
77
1
打赏
收藏
为什么在XP里面不能用WM_MOUSEWHEEL消息?
大侠们: 为什么在SDK程序中,我在使用这个消息时,会报错, 好象根本没有这个消息的定义一样, 那么如果我要在XP里面有鼠标轮的话,我要便用CASE ……(什么消息?) 请各位指教!!!!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
fireseed
2003-09-30
打赏
举报
回复
在你用到这个消息的文件上部加上:
// 如果你用MFC工程先加入下面的语句
#ifdef _WIN32_WINDOWS
#undef _WIN32_WINDOWS
#endif
#ifdef WINVER
#undef WINVER
#endif
#define _WIN32_WINDOWS 0x0501
#define WINVER 0x0501
WM
_
MOUSEWHEEL
在PreTranslateMessage(MSG* pMsg)中MSG 的说明
WM
_
MOUSEWHEEL
The
WM
_
MOUSEWHEEL
message is sent to the focus window when the mouse wheel is rotated. The DefWindowProc function propagates the message to the window's parent. There should be no inter
'
WM
_
MOUSEWHEEL
' : undeclared identifier
#if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400) #define
WM
_
MOUSEWHEEL
0x020A #endif The
WM
_
MOUSEWHEEL
is defined as follows. Which means that you need to define the windows version greater that 0x400 (Windows NT or gr
C# 模拟鼠标事件
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Reflection;
using System.Windows.Forms;
using System.ComponentModel;
using System.Data;
usin
钩子详解
HHOOK SetWindowsHookEx( //装载一个钩子 int idHook, //描述被装载的钩子的类型,参数见下面 HOOKPROC lpfn,
Windows
消息
编号,Windows Message Codes
Windows Message Codes Sorted by NameSorted by Code MessageCodeCodeMessage
WM
_ACTIVATE 0x0006 0x0000
WM
_NULL
WM
_ACTIVATEAPP 0x001C 0x0001
WM
_CREATE
WM
_AFXFI...
C语言
69,371
社区成员
243,080
社区内容
发帖
与我相关
我的任务
C语言
C语言相关问题讨论
复制链接
扫一扫
分享
社区描述
C语言相关问题讨论
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章