CMFCDesktopAlertDialog Class
The CMFCDesktopAlertDialog
class is used together with the CMFCDesktopAlertWnd Class to display a custom dialog in a popup window.
For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.
Syntax
class CMFCDesktopAlertDialog : public CDialogEx
Members
Public Methods
Name | Description |
---|---|
CMFCDesktopAlertDialog::CreateFromParams | |
CMFCDesktopAlertDialog::GetDlgSize | |
CMFCDesktopAlertDialog::HasFocus | |
CMFCDesktopAlertDialog::PreTranslateMessage | (Overrides CDialogEx::PreTranslateMessage .) |
Remarks
Perform the following steps to display a custom dialog in a popup window:
Derive a class from
CMFCDesktopAlertDialog
.Create a child dialog template in the resources of the project.
Call CMFCDesktopAlertWnd::Create with the resource ID of the dialog template and a pointer to the runtime class information of the derived class as parameters.
Program the custom dialog to handle all notifications that are coming from the hosted controls, or program the hosted controls to handle these notifications directly.
Inheritance Hierarchy
Requirements
Header: afxDesktopAlertDialog.h
CMFCDesktopAlertDialog::CreateFromParams
BOOL CreateFromParams(
CMFCDesktopAlertWndInfo& params,
CMFCDesktopAlertWnd* pParent);
Parameters
[in] params
[in] pParent
Return Value
Remarks
CMFCDesktopAlertDialog::GetDlgSize
CSize GetDlgSize();
Return Value
Remarks
CMFCDesktopAlertDialog::HasFocus
BOOL HasFocus() const;
Return Value
Remarks
CMFCDesktopAlertDialog::PreTranslateMessage
virtual BOOL PreTranslateMessage(MSG* pMsg);
Parameters
[in] pMsg
Return Value
Remarks
See also
Hierarchy Chart
Classes
CMFCDesktopAlertWnd Class
CMFCDesktopAlertWndInfo Class
CDialogEx Class