1 // FontPropertyPage.h : header file
4 #if !defined(AFX_FontPropertyPage_H__A815F7A5_D51B_11D1_8DDE_0800369C8A03__INCLUDED_)
5 #define AFX_FontPropertyPage_H__A815F7A5_D51B_11D1_8DDE_0800369C8A03__INCLUDED_
9 #endif // _MSC_VER >= 1000
11 #include "Aspect_FontMap.hxx"
14 /////////////////////////////////////////////////////////////////////////////
15 // CFontPropertyPage dialog
17 class CFontPropertyPage : public CPropertyPage
19 DECLARE_DYNCREATE(CFontPropertyPage)
22 Handle(Aspect_FontMap) myFontMap;
24 Handle(V2d_Viewer) myViewer;
26 void SetViewer(Handle(V2d_Viewer) aViewer) {
28 myFontMap = aViewer->FontMap();
37 //{{AFX_DATA(CFontPropertyPage)
38 enum { IDD = IDD_DIALOG_Font };
39 CString m_FontMapSize;
41 CString m_CurrentEntryValue;
42 CString m_CurrentEntryStyle;
43 CString m_CurrentEntrySize;
44 CString m_CurrentEntrySlant;
45 CComboBox m_NewEntry_Type;
46 double m_NewEntrySize;
47 double m_NewEntrySlant;
48 CString m_NewEntryValue;
52 // ClassWizard generate virtual function overrides
53 //{{AFX_VIRTUAL(CFontPropertyPage)
55 virtual BOOL OnApply();
57 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
62 // Generated message map functions
63 //{{AFX_MSG(CFontPropertyPage)
64 virtual BOOL OnInitDialog();
65 afx_msg void OnSelchangeFontMapTAB(NMHDR* pNMHDR, LRESULT* pResult);
66 afx_msg void OnFontMapBUTTONNewEntryEditFont();
67 afx_msg void OnFontMapBUTTONUpdateCurrent();
68 afx_msg void OnSelchangeFontMapCOMBONewEntryType();
69 afx_msg void OnFontMapBUTTONNewEntry();
73 void UpdateDisplay(int CurrentSelectionIndex);
77 //{{AFX_INSERT_LOCATION}}
78 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
80 #endif // !defined(AFX_FontPropertyPage_H__A815F7A5_D51B_11D1_8DDE_0800369C8A03__INCLUDED_)