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

Posted on 2005-04-06
Last Modified: 2010-04-24
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
Question by:mlogue
    1 Comment
    LVL 4

    Accepted 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

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
    In Easy String Encryption Using CryptoAPI in C++ ( I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now