다음을 통해 공유


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. CMFCDesktopAlertWnd ::Create를 대화 상자 템플릿의 리소스 ID와 파생 클래스의 런타임 클래스 정보에 대한 포인터를 매개 변수로 사용하여 만듭니 다.

  4. 호스트된 컨트롤에서 생성되는 모든 알림을 처리하는 사용자 지정 대화 상자를 프로그래밍하거나 이러한 알림을 직접 처리하는 호스트된 컨트롤을 프로그래밍합니다.

상속 계층 구조

CObject

CCmdTarget

CWnd

Cdialog

CDialogEx

CMFCDesktopAlertDialog

요구 사항

헤더: afxDesktopAlertDialog.h

CMFCDesktopAlertDialog::CreateFromParams

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

매개 변수

[in] Params

[in] pParent

Return Value

설명

CMFCDesktopAlertDialog::GetDlgSize

CSize GetDlgSize();

Return Value

설명

CMFCDesktopAlertDialog::HasFocus

BOOL HasFocus() const;

Return Value

설명

CMFCDesktopAlertDialog::P reTranslateMessage

virtual BOOL PreTranslateMessage(MSG* pMsg);

매개 변수

[in] pMsg

Return Value

설명

참고 항목

계층 구조 차트
클래스
CMFCDesktopAlertWnd Class
CMFCDesktopAlertWndInfo 클래스
CDialogEx 클래스