CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: System Modal

  1. #1
    Join Date
    Apr 1999
    Posts
    1

    System Modal

    Hi UI experts,

    I want an application. Which invokes a dialog
    box (when user select appropriate menu) it should
    display a system modal dialog box. I.e user should
    not be able to do any thing else (even outside my
    application) except responding to this dialog box.
    Will u all please help me how do i do that.

    --Yogi



  2. #2

    Re: System Modal

    Create a dialog in the resource editor. Create a dialog class(in which you can handle the buttons). Handle the menu message using the class wizard. Create the dialog box:

    #include "MyDialogClass.h" //place this on top.

    void CYourProgram::OnMenuItem() //classwizard generated function
    {
    CMyDialogClass dlg;
    dlg.DoModal();
    }





  3. #3
    Join Date
    Dec 2000
    Location
    Slovakia
    Posts
    1,043

    Re: System Modal

    There is not exist something like system modal dialog boxes in Win32 longer...

    Win32 architecture is not designed to allow one process to stop execution of another process instead of some cases.
    This is not this one....

    However, you can handle some messages (WM_ACTIVATE, ...) and you can handle activation process of windows (disallow switching to another application)...

    Martin


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured