The information in this article applies to:
SUMMARY
When creating a modal dialog box from within a USRDLL, or a regular DLL
statically linked to the MFC, you need to pass a valid parent window object
to the CDialog constructor. You cannot pass the CWnd pointer from an EXE to
an USRDLL, so you need to pass the HWND of the parent window.
The implementation of the CreateModal() is below. MORE INFORMATIONModal dialog requires a valid parent window to be modal. If the parent window is invalid or NULL, the dialog will not be modal and it will not prevent the user from switching to the other windows of the application. Sample Code
Note: In Visual C++ version 4.0, the term "USRDLL" is obsolete. In
earlier versions, USRDLL described DLLs that used MFC internally,
but typically export functions using the standard "C" interface.
In version 4.0, such DLLs are called "Regular DLLs." Regular DLLs,
statically linked to MFC have the same characteristics as the
former USRDLL.
Additional query words: kbinf modal dialog CDialog DLL USRDLL 1.50 2.00 2.50 2.51 3.00 4.00
Keywords : kbcode |
Last Reviewed: August 5, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |