世界各国o2o响应式网站,做网站后台开发工资,潍坊企业自助建站系统,安徽和城乡建设厅网站关注公号【逆向通信猿】更精彩#xff01;#xff01;#xff01;
CWnd类中常用的成员函数
函数名称含义static CWnd* PASCAL GetActiveWindow( )#xff08;进程内的#xff09;获取活动窗口CWnd* SetActiveWindow( )#xff08;进程内的#xff09;将一个窗口设置为…关注公号【逆向通信猿】更精彩
CWnd类中常用的成员函数
函数名称含义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 bRepaintTRUE )根据指定的位置移动窗口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获取一个窗口的IDint SetDlgCtrlID( int nID )给窗口设置一个新的ID