CWnd::BringWindowToTop
void BringWindowToTop( );ResBrings CWnd to the top of a stack of overlapping windows. In addition, BringWindowToTop activates pop-up, top-level, and MDI child windows. The BringWindowToTop member function should be used to uncover any window that is partially or completely obscured by any overlapping windows. Calling this function is similar to calling the SetWindowPos function to change a window’s position in the Z-order. The BringWindowToTop function does not change the window style to make it a top-level window of the desktop.Example// Moves MDI child windows to the top when a mouse passes
// over it. CMyView is derived from CView.
void CMyView::OnMouseMove(UINT nFlags, CPoint point)
{
GetParentFrame()->BringWindowToTop();
}如果是你要找的view,调用这个VIEW的BringWindowToTop()函数就可以了
void BringWindowToTop( );ResBrings CWnd to the top of a stack of overlapping windows. In addition, BringWindowToTop activates pop-up, top-level, and MDI child windows. The BringWindowToTop member function should be used to uncover any window that is partially or completely obscured by any overlapping windows. Calling this function is similar to calling the SetWindowPos function to change a window’s position in the Z-order. The BringWindowToTop function does not change the window style to make it a top-level window of the desktop.Example// Moves MDI child windows to the top when a mouse passes
// over it. CMyView is derived from CView.
void CMyView::OnMouseMove(UINT nFlags, CPoint point)
{
GetParentFrame()->BringWindowToTop();
}如果是你要找的view,调用这个VIEW的BringWindowToTop()函数就可以了
解决方案 »
- VS2010,怎么在对话框中添加按钮?
- 求助!如何让MFC创建工程时,窗口直接继承属性表单类
- CString 转为这个参数怎么转
- VC群招高手
- 求一c++简易通信录管理系统的源代码
- 弱弱的问个小问题
- 请问我在A程序里面用CreateProcess打开B程序,怎样才能关闭A程序的时候B程序也自动关闭了
- 有好的vc网站,请介绍几个
- unhandle exception in XXXX.exe (KERNEL32.DLL): 0x0EEDFADE: (no name).调试时出错
- 关于串口通信中COleSafearray的问题
- 在vc的IDE环境下,生成一个cpp文件,用了一个string,却出现问题。为什么?(代码在下面)
- 创建一个椭圆rgn?
virtual CView* GetNextView( POSITION& rPosition ) const;Return ValueA pointer to the view identified by rPosition.ParametersrPositionA reference to a POSITION value returned by a previous call to the GetNextView or GetFirstViewPosition member functions. This value must not be NULL.
pView = GetNextView(pos);
if(pView)
{
CWnd * pChildFrame = GetParent(pView);
if(pChildFrame)
pFrame->MDIActivate(pChildFrame);
}