Share via


CMFCDesktopAlertDialog Class

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

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

See Also

Reference

Hierarchy Chart

CMFCDesktopAlertWnd Class

CMFCDesktopAlertWndInfo Class

CDialogEx Class

Other Resources

MFC Classes