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 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探