[!if RIBBON_TOOLBAR] // This MFC Samples source code demonstrates using MFC Microsoft Office Fluent User Interface // (the "Fluent UI") and is provided only as referential material to supplement the // Microsoft Foundation Classes Reference and related electronic documentation // included with the MFC C++ library software. // License terms to copy, use or distribute the Fluent UI are available separately. // To learn more about our Fluent UI licensing program, please visit // https://go.microsoft.com/fwlink/?LinkId=238214. // // Copyright (C) Microsoft Corporation // All rights reserved. [!endif] // $dialogheader$ : header file // #pragma once [!if AUTOMATION] class $dialogautoproxyclass$; [!endif] // $dialogclass$ dialog class $dialogclass$ : public $dialogbaseclass$ { [!if AUTOMATION] DECLARE_DYNAMIC($dialogclass$); friend class $dialogautoproxyclass$; [!endif] // Construction public: $dialogclass$(CWnd* pParent = nullptr); // standard constructor [!if AUTOMATION] virtual ~$dialogclass$(); [!endif] // Dialog Data [!if HTML_DIALOG] #ifdef AFX_DESIGN_TIME enum { IDD = IDD_$uppercasesafeprojectidentifiername$_DIALOG, IDH = IDR_HTML_$uppercasesafeprojectidentifiername$_DIALOG }; #endif [!else] #ifdef AFX_DESIGN_TIME enum { IDD = IDD_$uppercasesafeprojectidentifiername$_DIALOG }; #endif [!endif] protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support [!if HTML_DIALOG] HRESULT OnButtonOK(IHTMLElement *pElement); HRESULT OnButtonCancel(IHTMLElement *pElement); [!endif] // Implementation protected: [!if AUTOMATION] $dialogautoproxyclass$* m_pAutoProxy; [!endif] HICON m_hIcon; [!if AUTOMATION] BOOL CanExit(); [!endif] // Generated message map functions virtual BOOL OnInitDialog(); [!if ABOUT_BOX] afx_msg void OnSysCommand(UINT nID, LPARAM lParam); [!endif] afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); [!if AUTOMATION] afx_msg void OnClose(); virtual void OnOK(); virtual void OnCancel(); [!endif] DECLARE_MESSAGE_MAP() [!if HTML_DIALOG] DECLARE_DHTML_EVENT_MAP() [!endif] };