坐标系在Client 与 Screen之间的转换

ClientToScreen(   hWnd,   (LPPOINT)&m_rcWin   );

ScreenToClient(   hWnd,   (LPPOINT)&m_rcWin   );

 

CView::

   ClientToScreen(&Point);//把坐标从client转换到screen下

 

....
   ScreenToClient(&Point);//再把坐标转换到client下

你可能感兴趣的:(坐标系在Client 与 Screen之间的转换)