Share via


CMFCDesktopAlertDialog クラス

このクラスは CMFCDesktopAlertDialog CMFCDesktopAlertWnd クラス共に使用され、ポップアップ ウィンドウにカスタム ダイアログを表示します。

詳細については、Visual Studio インストールの VC\atlmfc\src\mfc フォルダーにあるソース コードを参照してください。

構文

class CMFCDesktopAlertDialog : public CDialogEx

メンバー

パブリック メソッド

名前 説明
CMFCDesktopAlertDialog::CreateFromParams
CMFCDesktopAlertDialog::GetDlgSize
CMFCDesktopAlertDialog::HasFocus
CMFCDesktopAlertDialog::P reTranslateMessage ( CDialogEx::PreTranslateMessageをオーバーライドします)。

解説

次の手順を実行し、ポップアップ ウィンドウにカスタム ダイアログを表示します。

  1. CMFCDesktopAlertDialog の派生クラスを作成します。

  2. プロジェクトのリソースに、子のダイアログ テンプレートを作成します。

  3. ダイアログ テンプレートのリソース ID と、派生クラスのランタイム クラス情報へのポインターをパラメーターとして使用して、CMFCDesktopAlertWnd::Create を呼び出します。

  4. ホストされるコントロールからのすべての通知を処理するようにカスタム ダイアログをプログラミングするか、これらの通知を直接処理するようにホストされるコントロールをプログラミングします。

継承階層

CObject

CCmdTarget

CWnd

Cdialog

CDialogEx

CMFCDesktopAlertDialog

必要条件

ヘッダー: afxDesktopAlertDialog.h

CMFCDesktopAlertDialog::CreateFromParams

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

パラメーター

[in] Params

[in] pParent

戻り値

解説

CMFCDesktopAlertDialog::GetDlgSize

CSize GetDlgSize();

戻り値

解説

CMFCDesktopAlertDialog::HasFocus

BOOL HasFocus() const;

戻り値

解説

CMFCDesktopAlertDialog::P reTranslateMessage

virtual BOOL PreTranslateMessage(MSG* pMsg);

パラメーター

[入力] pMsg

戻り値

解説

関連項目

階層図
クラス
CMFCDesktopAlertWnd Class
CMFCDesktopAlertWndInfo クラス
CDialogEx クラス