|
// PreviewDlg.h : header file
//
// Author : David Shepherd
// Copyright (c) 2002, DaeDoe-Software
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "formviewer.h"
//}}AFX_INCLUDES
#if !defined(AFX_PREVIEWDLG_H__82DCD170_78D1_4F7C_B1BB_5BAE196BD4E8__INCLUDED_)
#define AFX_PREVIEWDLG_H__82DCD170_78D1_4F7C_B1BB_5BAE196BD4E8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CExposedObjectInfo
class CExposedObjectInfo
{
public:
// name
CString m_Name;
// object
CComPtr<IDispatch> m_spDispatch;
};
/////////////////////////////////////////////////////////////////////////////
// CPreviewDlg dialog
class CPreviewDlg : public CDialog
{
// Construction
public:
CPreviewDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CPreviewDlg)
enum { IDD = IDD_PREVIEW };
CFormViewer m_FormViewer;
//}}AFX_DATA
// this will be set TRUE if the preview should be auto sizing
BOOL m_AutoSizing;
// form file name
CString m_FileName;
// information about the objects which require exposing to the form viewer
CArray<CExposedObjectInfo,CExposedObjectInfo> m_ExposedObjectInfoArray;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPreviewDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CPreviewDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PREVIEWDLG_H__82DCD170_78D1_4F7C_B1BB_5BAE196BD4E8__INCLUDED_)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.