• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

makeing a dilog or screen always in front of another program screen for control

i am useing VS C++ not .net i belive?  i want to make a small program screen or dialog in front of a fullscreen video player so that i may makes notes in a txt area or do controaling featurs with that dialog or program screen. the video player still has to beable to get keystrochs so that i may play or stop the video with ctrl f3 or somthing like that.  i also want it to beable to open differnet files to that player.  i think i can just do that with closing a handle and then opeing another video player? this dialog/program has to be in front but not be the active page all the time but still always be in front.  i dont know if i have to have this program/dialog pass the commands to the player or is there any way else to do it.  
i know i have repeted myself be i am trying to be clear on what it has to do.  i have no idea how to make screens acitve or always in front and how they interact with each other.
 thanks marc
1 Solution
To place a window above all other windows (non-topmost ones), use SetWindowPos as follows:

SetWindowPos( hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE );

where hWnd is the handle of your window/dialog. Your window will remain over the other, even if it loses focus.

For more information about SetWindowPos:


Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

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