|
-
April 2nd, 1999, 03:04 AM
#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
-
August 2nd, 2001, 01:15 PM
#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();
}
-
August 2nd, 2001, 05:00 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|