description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: CMFCDesktopAlertDialog Class |
CMFCDesktopAlertDialog Class |
10/18/2018 |
|
|
a53c60aa-9607-485b-b826-ec64962075f6 |
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.
class CMFCDesktopAlertDialog : public CDialogEx
Name | Description |
---|---|
CMFCDesktopAlertDialog::CreateFromParams | |
CMFCDesktopAlertDialog::GetDlgSize | |
CMFCDesktopAlertDialog::HasFocus | |
CMFCDesktopAlertDialog::PreTranslateMessage | (Overrides CDialogEx::PreTranslateMessage .) |
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.
Header: afxDesktopAlertDialog.h
BOOL CreateFromParams(
CMFCDesktopAlertWndInfo& params,
CMFCDesktopAlertWnd* pParent);
[in] params
[in] pParent
CSize GetDlgSize();
BOOL HasFocus() const;
virtual BOOL PreTranslateMessage(MSG* pMsg);
[in] pMsg
Hierarchy Chart
Classes
CMFCDesktopAlertWnd Class
CMFCDesktopAlertWndInfo Class
CDialogEx Class