Thread: Always On Top, How?

  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    2

    Always On Top, How?

    Okay, I'm just tinkering with C++, slowly learning it, and I am wondering how to make the window be always on top for my program, right now I'm just doing this small countdown thing and I want to window that is in to be always on top.

  2. #2
    Tropical Coder Darryl's Avatar
    Join Date
    Mar 2005
    Location
    Cayman Islands
    Posts
    503
    Always wanting to be on top is what got Adam in trouble with Lilith and we ended up with that gullible Eve.

    When you create the window, one of the window extended styles is WS_EX_TOPMOST, use it.

  3. #3
    Registered User
    Join Date
    Jul 2007
    Posts
    2
    Hmmm, yeah, I'm just using a console program, so I'm not actually creating the window.

  4. #4
    Tropical Coder Darryl's Avatar
    Join Date
    Mar 2005
    Location
    Cayman Islands
    Posts
    503
    After leaving Adam, Lilith ran off and hooked up with some demons and had giant babies. She never ate the fruit of knowledge of good and evil, so she's still running around this earth somewhere.

    Anyway, You could try using GetConsoleWindow and SetWindowPos.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to make opengl draw in lighter colors ?
    By jabka in forum Game Programming
    Replies: 2
    Last Post: 12-17-2007, 06:12 AM
  2. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  3. OpenGL, loading BMP Textures?
    By Zeusbwr in forum Game Programming
    Replies: 12
    Last Post: 12-09-2004, 05:16 PM
  4. Odd 3D Invis Objects?
    By Zeusbwr in forum Game Programming
    Replies: 4
    Last Post: 12-07-2004, 07:01 PM
  5. Stack functions as arrays instead of node pointers
    By sballew in forum C Programming
    Replies: 8
    Last Post: 12-04-2001, 11:13 AM