读书人

请教怎么的到对话框位置坐标

发布时间: 2013-03-21 10:08:17 作者: rapoo

请问如何的到对话框位置坐标?
用户用鼠标拖着对话框移动. 请问如何随时的到当前对话框在窗口上的位置坐标? 位置
[解决办法]
先由GetWindowRect获取屏幕坐标,再换算成窗口坐标即可。
见MSDN对GetWindowRect的解释:
The GetWindowRect function retrieves the dimensions of the bounding rectangle of the specified window. The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen.

读书人网 >VC/MFC

热点推荐