Click to See Complete Forum and Search --> : System Modal


yoganand
April 2nd, 1999, 02:04 AM
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

Baafie
August 2nd, 2001, 01:15 PM
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();
}

MartinL
August 2nd, 2001, 05:00 PM
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