static CWnd* PASCAL GetActiveWindow( ) | (进程内的)获取活动窗口 |
CWnd* SetActiveWindow( ) | (进程内的)将一个窗口设置为活动窗口 |
static CWnd* PASCAL GetForegroundWindow( ) | 获取所有任务栏主窗口中最前端的窗口 |
BOOL SetForegroundWindow( ) | 将主窗口推到任务栏中所有窗口的最前端 |
CWnd* GetTopWindow( ) const | 获取所有重叠窗口中最前端的窗口 |
void BringWindowToTop( ) | 将顶层窗口或者MDI子窗口推到重叠窗口的最前端 |
BOOL FlashWindow( BOOL bInvert ) | 让窗口在任务栏中闪烁以下 |
HICON GetIcon( BOOL bBigIcon ) const | 获取窗口图标 |
HICON SetIcon( HICON hIcon, BOOL bBigIcon ) | 设置窗口图标 |
static CWnd* PASCAL GetDesktopWindow( ) | 获取Windows桌面窗口 |
void GetWindowRect( LPRECT lpRect ) const | 获取窗口在屏幕坐标中的矩形区域 (屏幕坐标系) |
void GetClientRect( LPRECT lpRect ) const | 获取窗口的客户区的矩形区域 (客户区坐标系) |
void ClientToScreen( LPPOINT lpPoint ) const | 将客户区坐标点转换成屏幕坐标点 |
void ClientToScreen( LPRECT lpRect ) const | 将客户区矩形转换成屏幕矩形 |
void ScreenToClient( LPPOINT lpPoint ) const | 将屏幕坐标点转换成客户区坐标点 |
void ScreenToClient( LPRECT lpRect ) const | 将屏幕矩形转换成客户区矩形 |
void MoveWindow( int x, int y, int nWidth, int nHeight, BOOL bRepaint=TRUE ) | 根据指定的位置移动窗口 |
void MoveWindow(LPCRECT pRect, BOOL bRepaint = TRUE ) | 根据指定的矩形区域移动窗口 |
static CWnd* WindowFromPoint( POINT point ) | 获取屏幕中某个坐标点上的窗口 |
CWnd* ChildWindowFromPoint( POINT point ) const | 获取客户区内某个坐标点上的子窗口 |
CWnd* GetWindow( UINT nCmd ) const | 全面获取窗口,包括父子窗口前后窗口等 |
CWnd*GetNextWindow(UINTnFlag =GW_HWNDNEXT ) const | 获取z序中的前一个或后一个窗口,可以联合 |
static CWnd* FindWindow(LPCTSTR szClassName, LPCTSTR lpszWindowName ) | 根据类名或者标题名查找一个主窗口 |
static CWnd* PASCAL GetCapture( ) | 获取捕捉鼠标活动的窗口 |
CWnd* SetCapture( ) | 将窗口设置为捕捉鼠标活动的窗口 |
int GetWindowRgn( HRGN hRgn )const | 获取不规则窗口的区域 |
int SetWindowRgn( HRGN hRgn, BOOL bRedraw ) | 按照指定的区域将窗口设置为不规则形状 |
BOOL SetWindowPos(const CWnd* pWndAfter, int x, int y, int cx, int cy, UINT nFlags ) | 不但移动窗口的x,y坐标位置,而且还改变窗口的Z轴次序 |
void CenterWindow( CWnd* pOwner = NULL ) | 将窗口居中,对应父窗口或者屏幕的中央 |
CWnd* GetOwner( ) const | 获取拥有者窗口 等价于:GetWindow(GW_OWNER) |
void SetOwner( CWnd* pOwnerWnd ) | 将窗口设置为被另一个窗口拥有 |
CWnd* GetParent( ) const | 获取父窗口 |
CWnd* SetParent( CWnd* pWndNewParent ) | 为窗口设置一个新的父窗口 |
int GetDlgCtrlID( ) const | 获取一个窗口的ID |
int SetDlgCtrlID( int nID ) | 给窗口设置一个新的ID |