modal dialog to modal less 
Author Message
 modal dialog to modal less

Hi, is it possible to convert the certain Modal Dialog to Modal less dialog, if I know the HWND of this certain window?

--

Sergey Bogdanov
programmer

Vide Infra Grupa SIA
224 Brivibas, LV 1039
Riga, Latvia

gsm: +371 9855428
phone: +371 7 840060
fax: +371 7 840061


www.videinfra.com



Sun, 29 Aug 2004 06:25:49 GMT  
 modal dialog to modal less

Quote:

> Hi, is it possible to convert the certain Modal Dialog to Modal less
> dialog, if I know the HWND of this certain window?

Yes.  Go to codeguru.com

-------------------------------------------------------------

-------------------------------------------------------------



Sat, 28 Aug 2004 20:23:38 GMT  
 modal dialog to modal less
I answered this a few days ago.
                        joe

Quote:

>Hi, is it possible to convert the certain Modal Dialog to Modal less dialog, if I know the HWND of this certain window?

Joseph M. Newcomer [MVP]

Web: http://www3.pgh.net/~newcomer
MVP Tips: http://www3.pgh.net/~newcomer/mvp_tips.htm


Mon, 30 Aug 2004 10:36:53 GMT  
 modal dialog to modal less

Quote:

> Hi, is it possible to convert the certain Modal Dialog to Modal less
> dialog, if I know the HWND of this certain window?

The opposite (you have a modeless dialog which can work like a modal)
is easy:

// Simulates toggling between modal and modeless
// for a dialog that is originally created as modeless.
// Pass TRUE to set Modal, FALSE to set back to Modeless.
void CYourDialog::GoModal(BOOL bModal)
{
        // Disables/enables the Application's main frame window
        // and all children (Menus, toolbars, dialogs, views etc...).
        AfxGetMainWnd()->EnableWindow(!bModal);

        if (!bModal)
                return;

        // If this dialog is going modal then we must re-enable this
        // dialog so that we can still use it.
        EnableWindow(TRUE);

Quote:
}

HTH


Mon, 30 Aug 2004 19:37:10 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. modal dialogs on top of modal dialogs...

2. Showing a modal dialog in a modal dialog application

3. modal dialog spawning a modal dialog

4. Modal dialog over a modal dialog ( How to...?)

5. creating Modal vs. Non-Modal dialogs

6. modal dialog not modal?

7. Modal dialog not acting modal

8. dialog order / modal/less question

9. MDI app w/ modal-less dialog box (inter-view communication)

10. CColorDialog.Modal() is not Modal

11. modal property sheet looses modal behavior after error message

12. Executing modal tabbed dialog from a dialog-based application

 

 
Powered by phpBB® Forum Software