1 #ifndef _OPTIONS_DIALOG_
2 #define _OPTIONS_DIALOG_
3 
4 // options_dialog dialog
5 
6 #define MAX_OPTION_COUNT 5
7 
8 class options_dialog : public express_dialog
9 {
10 	DECLARE_DYNAMIC(options_dialog)
11 
12 public:
13     options_dialog(CString title, CString msg, STRING_VAL_PAIR *option_list, CWnd* pParent = NULL);   // standard constructor
14     virtual ~options_dialog();
15     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
GetSelectedOption()16     int GetSelectedOption(){ return m_selected_option; };
17 
18 // Dialog Data
19     enum { IDD = IDD_OPTIONS_DLG };
20 
21 private:
22     STRING_VAL_PAIR *mp_option_list;
23     CButton m_option_buttons[MAX_OPTION_COUNT];
24     CStatic m_message_box;
25     CString m_message;
26     int m_option_count;
27     int m_selected_option;
28 
29 protected:
30     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
31     void PositionChildren();
32     afx_msg void OnOptionClicked(UINT nID);
33     LRESULT OnTestMessage(WPARAM wParam, LPARAM lParam);
34 
35     DECLARE_MESSAGE_MAP()
36 };
37 #endif