Skip to content

Latest commit

 

History

History
120 lines (75 loc) · 3.5 KB

cmfcdesktopalertdialog-class.md

File metadata and controls

120 lines (75 loc) · 3.5 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: CMFCDesktopAlertDialog Class
CMFCDesktopAlertDialog Class
10/18/2018
CMFCDesktopAlertDialog
AFXDESKTOPALERTDIALOG/CMFCDesktopAlertDialog
AFXDESKTOPALERTDIALOG/CMFCDesktopAlertDialog::CreateFromParams
AFXDESKTOPALERTDIALOG/CMFCDesktopAlertDialog::GetDlgSize
AFXDESKTOPALERTDIALOG/CMFCDesktopAlertDialog::HasFocus
AFXDESKTOPALERTDIALOG/CMFCDesktopAlertDialog::PreTranslateMessage
CMFCDesktopAlertDialog [MFC], CreateFromParams
CMFCDesktopAlertDialog [MFC], GetDlgSize
CMFCDesktopAlertDialog [MFC], HasFocus
CMFCDesktopAlertDialog [MFC], PreTranslateMessage
a53c60aa-9607-485b-b826-ec64962075f6

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:

  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

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