OnMouseMove中的nFlags的意义何在呢?检测当前我们说产生的动作是如何
2015-09-13 20:36
316 查看
The framework calls this member function when the mouse cursor moves.
Indicates whether various virtual keys are down. This parameter can be any combination of the following values:
MK_CONTROL Set if the CTRL key is down.
MK_LBUTTON Set if the left mouse button is down.
MK_MBUTTON Set if the middle mouse button is down.
MK_RBUTTON Set if the right mouse button is down.
MK_SHIFT Set if the SHIFT key is down.
point
Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window.
CWnd object beneath the mouse cursor; otherwise, the message goes to the window that has captured the mouse.
afx_msg void OnMouseMove( UINT nFlags, CPoint point ); |
Parameters
nFlagsIndicates whether various virtual keys are down. This parameter can be any combination of the following values:
MK_CONTROL Set if the CTRL key is down.
MK_LBUTTON Set if the left mouse button is down.
MK_MBUTTON Set if the middle mouse button is down.
MK_RBUTTON Set if the right mouse button is down.
MK_SHIFT Set if the SHIFT key is down.
point
Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window.
Remarks
If the mouse is not captured, the WM_MOUSEMOVE message is received by theCWnd object beneath the mouse cursor; otherwise, the message goes to the window that has captured the mouse.
Note |
---|
This member function is called by the framework to allow your application to handle a Windows message. The parameters passed to your function reflect the parameters received by the framework when the message was received. If you call the base-class implementation of this function, that implementation will use the parameters originally passed with the message and not the parameters you supply to the function. |
相关文章推荐
- oracle dba
- DataTable和Xml互相转化
- 网易游戏2016校招"数据挖掘研究员"在线比赛题一求解算法(C++)
- cygwin简介及使用
- 最好用的启动管理软件推荐-点评-对比-分析-下载:
- 4、网络编程
- css3实现卡片翻转
- 4、编程珠玑笔记四编写正确的程序
- I|O流 文件的输入和输出
- iOS Xcode制作模板类
- SQL Server 数据库结构查询
- 【网络】(七)五种I/O模型--I/O复用 Select(一)
- iOS中的请求(GET请求,POST请求,同步请求,异步请求)
- Android标题栏的各种设置
- 3、编程珠玑笔记三数据决定程序结构
- javaIO流(2):文件字节输入流
- hdu5438 Ponds(并查集、拓扑排序)
- WebSocket connection to,Error during WebSocket handshake: Unexpected response code: 404
- 3中文件读取方式
- java中使用字节流的方式复制文件