1 #pragma once
2 #include "afxwin.h"
3 #include "afxcmn.h"
4 
5 
6 // configure_theme_dlg dialog
7 
8 
9 class configure_theme_dlg : public express_dialog
10 {
11     DECLARE_DYNAMIC(configure_theme_dlg)
12 
13 public:
14     configure_theme_dlg(int DisplayIndex, CWnd* pParent = NULL);   // standard constructor
15     virtual ~configure_theme_dlg();
16     virtual BOOL OnInitDialog();
17 
18 // Dialog Data
19     enum { IDD = IDD_CONFIGURE_THEMES };
20 
21 protected:
22     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
23     virtual void OnCancel();
24 
25     DECLARE_MESSAGE_MAP()
26 
27 private:
28     int mDisplayIndex;
29     int mThemeIndex;
30     int mNumThemes;
31     CString mThemeNames[MAX_THEMES];
32     BOOL mStaticallyDefined[MAX_THEMES];
33     void UpdateThemeNameCombo();
34     void ShowHidePaletteEditButton();
35 
36 public:
37     express_combobox mDisplayNameCombo;
38     express_combobox mThemeNameCombo;
39     CEdit mThemeName;
40     CButton mStaticallyDefinedCheck;
41     afx_msg void OnDeltaposSpinNumThemes(NMHDR *pNMHDR, LRESULT *pResult);
42     afx_msg void OnDeltaposSpinThemeIndex(NMHDR *pNMHDR, LRESULT *pResult);
43     CSpinButtonCtrl mSpinNumThemes;
44     CSpinButtonCtrl mSpinThemeIndex;
45     afx_msg void OnCbnSelchangeDisplayName();
46     afx_msg void OnBnClickedEditPalette();
47     afx_msg void OnOK();
48     afx_msg void OnEnKillfocusThemeName();
49     afx_msg LRESULT OnTestMessage(WPARAM wParam, LPARAM lParam);
50 };
51