Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting a child window active

Status
Not open for further replies.

lhilliard

Programmer
Apr 4, 2001
7
US
No MFC! I am using WIN 32 API.

My problem is my child window will not highlight or look active (blue title bar) when I bring it up.

I want it to be a child window inside my main. My code is as follows:
Code:
hScopeWnd = CreateWindow(szScopeClass,"Scope",WS_CAPTION | WS_CHILD | WS_SYSMENU | WS_VISIBLE | WS_MINIMIZEBOX,0,0,227,247,hWnd,NULL,hInst, NULL);

If I take out WS_CHILD, the title bar will highlight but I lose the CHILD feature that I want. Can anyone give me a suggestion on how to fix this?

lhilliard
 
Try BringWindowToTop(HWND) or CWnd::BeringWindowToTop.
The foreground window can be not on top. You can also use SetWindowPos. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top