yymiaoxin2010 2017-08-18 13:21 采纳率: 72.7%
浏览 816
已采纳

关于取坐标位置 clinettoscreen

今天在编写一个POPUP MENU程式中有一个疑问
WM_RBUTTONUP :
point.x=LOWORD(lparam) //此时已经取到了鼠标右键点击客户区坐标
point.y=HIWOR(lparam)

弹出式菜单没有在鼠标指针位置弹出
在使用clienttoscreen(hwnd,&point);后弹出式菜单在鼠标位置弹出
提问,在没有使用clinetoscreen 之前 point 已经是鼠标点击客户区坐标难道只是逻辑坐标么

  • 写回答

1条回答 默认 最新

  • threenewbee 2017-08-19 01:36
    关注

    https://technet.microsoft.com/ZH-cn/library/ms646243.aspx/

    lParam
    The low-order word specifies the x-coordinate of the cursor. The coordinate is relative to the upper-left corner of the client area.

    The high-order word specifies the y-coordinate of the cursor. The coordinate is relative to the upper-left corner of the client area.
    说的很清楚,是相对坐标

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置