0031445: Advanced wrappers, C# wrapper - provide device info in About dialog of WPF...
[occt.git] / samples / mfc / occtdemo / Common / WNT / ResultDialog.h
CommitLineData
7fd59977 1#if !defined(AFX_RESULTDIALOG_H__6597303D_7F5B_11D5_BA4D_0060B0EE18EA__INCLUDED_)
2#define AFX_RESULTDIALOG_H__6597303D_7F5B_11D5_BA4D_0060B0EE18EA__INCLUDED_
3
4#if _MSC_VER > 1000
5#pragma once
6#endif // _MSC_VER > 1000
7// ResultDialog.h : header file
8//
9
10#include "resource.h"
11
12/////////////////////////////////////////////////////////////////////////////
13// CResultDialog dialog
14
15class CResultDialog : public CDialog
16{
17// Construction
18public:
19 void Initialize();
20 CResultDialog(CWnd* pParent = NULL); // standard constructor
21 void SetTitle(LPCSTR aTitle);
22 void SetText(LPCSTR aText);
23 void Empty();
24
25// Dialog Data
26 //{{AFX_DATA(CResultDialog)
27 enum { IDD = IDD_ResultDialog };
28 // NOTE: the ClassWizard will add data members here
29 //}}AFX_DATA
30
31
32// Overrides
33 // ClassWizard generated virtual function overrides
34 //{{AFX_VIRTUAL(CResultDialog)
35 protected:
36 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
37 virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
38 //}}AFX_VIRTUAL
39
40// Implementation
41protected:
42
43 // Generated message map functions
44 //{{AFX_MSG(CResultDialog)
45 afx_msg void OnCopySelectionToClipboard();
46 afx_msg void OnCopyAllToClipboard();
47 virtual void OnCancel();
48
49 // OnSize is a message handler of WM_SIZE messge,
50 // it is reimplemented in order to reposition the buttons
51 // (keep them always in the bottom part of the dialog)
52 // and resize the rich edit controls as user resized THIS dialog.
53 afx_msg void OnSize(UINT nType, int cx, int cy);
54 //}}AFX_MSG
55
56 DECLARE_MESSAGE_MAP()
57
58private:
59 int bw, bh; // button width and height
60
61};
62
63//{{AFX_INSERT_LOCATION}}
64// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
65
66#endif // !defined(AFX_RESULTDIALOG_H__6597303D_7F5B_11D5_BA4D_0060B0EE18EA__INCLUDED_)