Compartilhar via


CMFCDesktopAlertDialog Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CMFCDesktopAlertDialog Class.

The CMFCDesktopAlertDialog class is used together with the CMFCDesktopAlertWnd Class to display a custom dialog in a popup window.

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:

  1. Derive a class from CMFCDesktopAlertDialog.

  2. Create a child dialog template in the resources of the project.

  3. 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.

  4. 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

CObject

CCmdTarget

CWnd

CDialog

CDialogEx

CMFCDesktopAlertDialog

Requirements

Header: afxDesktopAlertDialog.h

CMFCDesktopAlertDialog::CreateFromParams

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

BOOL CreateFromParams(
    CMFCDesktopAlertWndInfo& params,  
    CMFCDesktopAlertWnd* pParent);

Parameters

[in] params
[in] pParent

Return Value

Remarks

CMFCDesktopAlertDialog::GetDlgSize

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

CSize GetDlgSize();

Return Value

Remarks

CMFCDesktopAlertDialog::HasFocus

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

BOOL HasFocus() const;  

Return Value

Remarks

CMFCDesktopAlertDialog::PreTranslateMessage

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

virtual BOOL PreTranslateMessage(MSG* pMsg);

Parameters

[in] pMsg

Return Value

Remarks

See Also

Hierarchy Chart
Classes
CMFCDesktopAlertWnd Class
CMFCDesktopAlertWndInfo Class
CDialogEx Class