MFC
Expand Minimize
2 out of 2 rated this helpful - Rate this topic

CWnd::BringWindowToTop 

Brings CWnd to the top of a stack of overlapping windows.


void BringWindowToTop( );

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.

// 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();
}
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.