1 #ifndef _TRIGGER_ACTION_SELECT_DLG_ 2 #define _TRIGGER_ACTION_SELECT_DLG_ 3 #include "afxwin.h" 4 5 class trigger_action_select_dlg : public express_dialog 6 { 7 DECLARE_DYNAMIC(trigger_action_select_dlg) 8 9 public: 10 trigger_action_select_dlg(CWnd* pParent = NULL); // standard constructor 11 virtual ~trigger_action_select_dlg(); 12 13 // Dialog Data 14 enum { IDD = IDD_TRIGGER_ACTION_SELECT_DLG }; 15 16 protected: 17 virtual BOOL OnInitDialog(); 18 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 19 afx_msg void OnSelectActionList(); 20 afx_msg LRESULT OnTestMessage(WPARAM wParam, LPARAM lParam); 21 22 DECLARE_MESSAGE_MAP() 23 24 public: 25 static int GetActionType(CString type_name); 26 static CString GetActionTypeName(int type); GetSelectedActionName()27 CString GetSelectedActionName(){ return mSelectedActionName; }; GetSelectedActionType()28 int GetSelectedActionType(){ return mSelectedActionType; }; 29 30 protected: 31 void UpdateListBoxHorizontalExtend(CListBox *pList); 32 void InitActionLists(); 33 34 CListBox mActionList; 35 CString mSelectedActionName; 36 int mSelectedActionType; 37 }; 38 #endif