ScreenToClient();
ClientToScreen();
Converts the client coordinates of a given
point or rectangle on the display to screen coordinates.
void ClientToScreen( LPPOINT lpPoint ) const; void ClientToScreen( LPRECT lpRect ) const;
Converts the screen coordinates of a given
point or rectangle on the display to client coordinates.
void ScreenToClient( LPPOINT lpPoint ) const; void ScreenToClient( LPRECT lpRect ) const;
本文介绍了如何使用ScreenToClient和ClientToScreen函数进行屏幕坐标与客户端坐标的相互转换。这两种函数能够帮助开发者处理窗口坐标系之间的转换问题,适用于需要进行坐标变换的应用场景。

6448

被折叠的 条评论
为什么被折叠?



