opencv 关掉双击图像切换到下一张功能

ubunfans 2014-12-19 09:54:29
使用OpenCV处理多幅图像的时候,在当前show出的图像双击,即可切换的下一行,我想关掉双击这个功能,怎么弄?请大家帮忙
...全文
292 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2014-12-22
  • 打赏
  • 举报
回复
WM_LBUTTONDBLCLK The WM_LBUTTONDBLCLK message is posted when the user double-clicks the left mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. WM_LBUTTONDBLCLK fwKeys = wParam; // key flags xPos = LOWORD(lParam); // horizontal position of cursor yPos = HIWORD(lParam); // vertical position of cursor Parameters fwKeys Value of wParam. Indicates whether various virtual keys are down. This parameter can be any combination of the following values: Value Description 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. xPos Value of the low-order word of lParam. Specifies the x-coordinate of the cursor. The coordinate is relative to the upper-left corner of the client area. yPos Value of the high-order word of lParam. Specifies the y-coordinate of the cursor. The coordinate is relative to the upper-left corner of the client area. Return Values If an application processes this message, it should return zero. Remarks Only windows that have the CS_DBLCLKS style can receive WM_LBUTTONDBLCLK messages, which the system generates whenever the user presses, releases, and again presses the left mouse button within the system's double-click time limit. Double-clicking the left mouse button actually generates four messages: WM_LBUTTONDOWN, WM_LBUTTONUP, WM_LBUTTONDBLCLK, and WM_LBUTTONUP again. An application can use the MAKEPOINTS macro to convert the lParam parameter to a POINTS structure. QuickInfo Windows NT: Requires version 3.1 or later. Windows: Requires Windows 95 or later. Windows CE: Requires version 1.0 or later. Header: Declared in winuser.h. See Also Mouse Input Overview, Mouse Input Messages, GetCapture, GetDoubleClickTime,MAKEPOINTS,POINTS, SetCapture, SetDoubleClickTime, WM_LBUTTONDOWN, WM_LBUTTONUP
ubunfans 2014-12-22
  • 打赏
  • 举报
回复
引用 1 楼 zhao4zhong1 的回复:
拦截鼠标消息?
谢谢,现在就是这样做的。 OpenCV对双击左键的响应居然是先响应一次单击,然后再响应双击。不晓得有没有办法进一步过滤!
赵4老师 2014-12-19
  • 打赏
  • 举报
回复
拦截鼠标消息?

3,881

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 其它技术问题
社区管理员
  • 其它技术问题社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧