question about Message Boxes

This is a discussion on question about Message Boxes within the C++ Programming forums, part of the General Programming Boards category; Could someone tell me how to make a MessageBox always stay on top of the other windows....

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    61

    question about Message Boxes

    Could someone tell me how to make a MessageBox always stay on top of the other windows.

  2. #2
    zen
    zen is offline
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    MessageBox(yourHwnd,"text","caption",MB_OK|MB_SYST EMMODAL)


    If you want it to stay ontop of windows just in your app (as oposed to all windows) replace MB_SYSTEMMODAL with MB_APPLMODAL.

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    61
    Thanks!

  4. #4
    Registered User Aran's Avatar
    Join Date
    Aug 2001
    Posts
    1,301
    hehe, i remember that assman from sienfeld... that proctologist. harhar.

    alright, i'll shutup now.

  5. #5
    Unregistered
    Guest
    I am trying to do the same thing. Keep message box ontop of everything, but it does not seem to work with many purchased games.

    Is there away to keep a box open over top everything even games that I startup afterwards? (e.g. Quake, Everquest, MW3)

    What I am trying to do is get the message box that displays the time and some other text to show through.

  6. #6
    zen
    zen is offline
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    If the game you are playing is in fullscreen mode AFAIK there is no way of keeping a MessageBox on top.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 03-10-2008, 12:57 PM
  2. Architecture Question
    By Orborde in forum C++ Programming
    Replies: 1
    Last Post: 06-01-2005, 09:05 AM
  3. Replies: 5
    Last Post: 02-17-2005, 01:01 PM
  4. Question About Edit Boxes
    By ElWhapo in forum Windows Programming
    Replies: 14
    Last Post: 01-02-2005, 12:39 PM

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