Making a dialog over everything - even games

This is a discussion on Making a dialog over everything - even games within the Windows Programming forums, part of the Platform Specific Boards category; how do you guys make a dialog window overlap everything? even games? i understand the command Code: CDialog::SetWindowPos&wndTopMost,0,100,0,0,SWP_NOACTIVATE|SWP_NOSIZE); but it ...

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    114

    Making a dialog over everything - even games

    how do you guys make a dialog window overlap everything? even games?

    i understand the command

    Code:
    	CDialog::SetWindowPos&wndTopMost,0,100,0,0,SWP_NOACTIVATE|SWP_NOSIZE);
    but it does not overlap games

    i have seen advertisers like netzero advertisements managed to overlap everything even games in full screen mode

    SetWindowPos is insufficient in this case
    what's is the easiest way to do this overlapping feat?

    please advise

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Interesting. You could look at MSDN. Another approach is to change the game's window via enumeration.

    Kuphryn

  3. #3
    The N00b That Owns You!
    Join Date
    Jul 2005
    Location
    Canada!
    Posts
    178
    but if he wants to make a single app tat could go over the all games in the future as we know it hes not gonna get everysingle games enumeration. lol XD
    New Function!!!!

    glAddIdol(C+noob);

    The feeling of rusty spoons against my salad fingers is almost ORGASMIC

  4. #4
    Registered User
    Join Date
    Mar 2004
    Posts
    114
    Quote Originally Posted by kuphryn
    Interesting. You could look at MSDN. Another approach is to change the game's window via enumeration.

    Kuphryn
    i checked it out and only found the command setwindowpos which doesnt work

  5. #5
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    See if you can enumerate the game window and remove its top-most attribute.

    Kuphryn

  6. #6
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    >>i checked it out and only found the command setwindowpos which doesnt work

    It probably does work but the game then resets itself as the top most window
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  7. #7
    Dump Truck Internet valis's Avatar
    Join Date
    Jul 2005
    Posts
    357
    GetForegroundWindow and SetForegroundWindow should do the trick, but overlooking the device code, games are rather sitting on the hardware writing straight to memory, as soon as the game gets some cycles it will write over your window, then when you get the chance you come back up; this will probably cause an annoying flicker.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Biggest problem when making games?
    By Yarin in forum Game Programming
    Replies: 15
    Last Post: 09-29-2007, 01:53 PM
  2. Making New Site (need games)
    By dayknight in forum Game Programming
    Replies: 5
    Last Post: 02-11-2003, 09:27 PM
  3. going about making PS2 games
    By DarkViper in forum Game Programming
    Replies: 22
    Last Post: 02-03-2003, 03:31 PM
  4. edit control in dialog box problems
    By Bajanine in forum Windows Programming
    Replies: 11
    Last Post: 11-11-2002, 05:55 PM
  5. making money and playing games...
    By Aran in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 09-10-2001, 07:13 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21