Freeze Screen on windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • murasame
    New Member
    • Jul 2008
    • 1

    Freeze Screen on windows

    Hi,
    I have a question regarding windows display things. Using C++, is there any way to freeze the screen and show only one form active (only that form can receive input from user).

    The example of my description is like when windows user click shutdown from start menu. It shows choices like shutdown, restart, etc and not allow user to do input other than to that form.

    Any Idea?
  • Studlyami
    Recognized Expert Contributor
    • Sep 2007
    • 464

    #2
    Depending on what graphics library you are using and the type of window you are using. Look for Modal windows for the given window you created. If your using a MFC Dialog you can do Dialog.DoModal( ) For a CFrameWnd look a BeginModalState () - be careful the Dialog Modal acts differently than the CFrameWnd Modal.

    Comment

    Working...