Thread: Have a window take z-order precedence over - Games?

  1. #1
    Registered User
    Join Date
    Mar 2006
    Location
    USA::Colorado
    Posts
    155

    Have a window take z-order precedence over - Games?

    How can I create a standard MFC dialog that takes precedence over game running in fullscreen? (EX: CoD4, CSS, BF2). I tried settings: Topmost = true and SetForeground = true.

    Is there another way of doing this?

    Thanks in advance,

    Guitarist809
    ~guitarist809~

  2. #2
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Why do you want to do this? It doesn't sound good thus far.

  3. #3
    Registered User
    Join Date
    Mar 2006
    Location
    USA::Colorado
    Posts
    155
    Let's just say I like to know what time it is when I'm playing a game and it takes too long to minimize/maximize the game.

    I was told to use SetWindowPos(), however, it didn't work.

    Code:
    SetWindowPos ( thewnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE );
    I ran that code in a loop just to make sure it would constantly go on the top (I also used HWND_TOPMOST). It didn't work.
    Last edited by guitarist809; 07-19-2008 at 08:27 PM.
    ~guitarist809~

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. creating a child window
    By rakan in forum Windows Programming
    Replies: 2
    Last Post: 01-23-2007, 03:22 PM
  2. input/output
    By dogbert234 in forum Windows Programming
    Replies: 11
    Last Post: 01-26-2005, 06:57 AM
  3. my wndProc is out of scope
    By Raison in forum Windows Programming
    Replies: 35
    Last Post: 06-25-2004, 07:23 AM
  4. making a absolute overlapped window, even overlap games
    By hanhao in forum C++ Programming
    Replies: 1
    Last Post: 03-22-2004, 08:53 AM
  5. Invoking MSWord
    By Donn in forum C Programming
    Replies: 21
    Last Post: 09-08-2001, 04:08 PM