Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 258
  • Last Modified:

window always in front?!

hi,
I have a second framewnd within my app.
Now I  want to have the second wnd ALWAYS IN FRONT OF THE
OTHER WND ( mainframe ).
I tried the WS_EX_TOPMOST style but with that flag the
window is in front of all windows.
dib
0
nil_dib
Asked:
nil_dib
1 Solution
 
jstolanCommented:
Whenever your mainframe gets the focus use SetWindowPos to set it in the z-order immediately behind your second Wnd

SetWindowPos(&CWndSecondFrame,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now