ScreenToClient 客户区指的是什么

 

 

 

 
CWnd:: ScreenToClient

CWnd::ScreenToClient

void ScreenToClient( LPPOINT lpPoint ) const;

void ScreenToClient( LPRECT lpRect ) const;

Parameters

lpPoint

Points to a CPoint object or POINT structure that contains the screen coordinates to be converted.

lpRect

Points to a CRect object or RECT structure that contains the screen coordinates to be converted.

Remarks

Converts the screen coordinates of a given point or rectangle on the display to client coordinates.

 

 

 

 

 

 

 

 

 

 

 

将屏幕坐标转换为客户坐标

 

刚开始用这个函数时,有些疑惑:相对于客户坐标,那客户区是什么,函数并没有指定啊

 

后来理解了: 既然是在对话框中调用此函数,那客户区当然指的就是对话框的客户区呀:》

 

 

 

 

你可能感兴趣的:(object,structure)