SetRule.h
上传用户:zhanglf88
上传日期:2013-11-19
资源大小:6036k
文件大小:2k
源码类别:

金融证券系统

开发平台:

Visual C++

  1. #if !defined(AFX_SETRULE_H__47F1A524_1DCF_400F_AEE3_349E9BD0EF50__INCLUDED_)
  2. #define AFX_SETRULE_H__47F1A524_1DCF_400F_AEE3_349E9BD0EF50__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // SetRule.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CSetRule dialog
  10. #define WM_USER_SETRULECLICKTREE (WM_USER+1001)
  11. class CParamDlg;
  12. /***
  13. 设置策略的买卖规则的属性页对话框
  14. */
  15. class CSetRule : public CPropertyPageEx
  16. {
  17. DECLARE_DYNCREATE(CSetRule)
  18. // Construction
  19. public:
  20. CSetRule();
  21. CSetRule( UINT nIDCaption, UINT nIDTitle, UINT nIDSubTitle );
  22. ~CSetRule();
  23. DWORD m_dwButtonFlags;
  24. BOOL m_bModified;
  25. void SetTechParameters( CTechParameters * pParam, CSPDWordArray *panSelectedTechs );
  26. // Dialog Data
  27. //{{AFX_DATA(CSetRule)
  28. enum { IDD = IDD_SETRULE };
  29. CTreeCtrl m_tree;
  30. CButton m_btnAllDefault;
  31. //}}AFX_DATA
  32. protected:
  33. CParamDlg * m_pParamDlg;
  34. CImageList m_ImageList;
  35. CTechParameters * m_pTechParameters;
  36. CSPDWordArray * m_panSelectedTechs;
  37. CSPDWordArray m_anSelectedTechs;
  38. CSPDWordArray m_anClassChecked;
  39. BOOL InitTreeTechs( );
  40. void GetCurrentSelectedTechs( CSPDWordArray & au );
  41. BOOL ValidData( );
  42. BOOL StoreData( );
  43. // Overrides
  44. // ClassWizard generate virtual function overrides
  45. //{{AFX_VIRTUAL(CSetRule)
  46. public:
  47. virtual BOOL PreTranslateMessage(MSG* pMsg);
  48. virtual BOOL OnSetActive();
  49. protected:
  50. virtual BOOL OnWizardFinish();
  51. virtual BOOL OnKillActive();
  52. virtual LRESULT OnWizardNext();
  53. virtual LRESULT OnWizardBack();
  54. virtual void OnOK();
  55. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  56. //}}AFX_VIRTUAL
  57. // Implementation
  58. protected:
  59. // Generated message map functions
  60. //{{AFX_MSG(CSetRule)
  61. afx_msg void OnAlldefault();
  62. afx_msg void OnSelchangedTree(NMHDR* pNMHDR, LRESULT* pResult);
  63. afx_msg void OnSelchangingTree(NMHDR* pNMHDR, LRESULT* pResult);
  64. virtual BOOL OnInitDialog();
  65. afx_msg void OnClickTree(NMHDR* pNMHDR, LRESULT* pResult);
  66. //}}AFX_MSG
  67. afx_msg LRESULT OnSetRuleClickTree( WPARAM wParam, LPARAM lParam );
  68. DECLARE_MESSAGE_MAP()
  69. };
  70. //{{AFX_INSERT_LOCATION}}
  71. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  72. #endif // !defined(AFX_SETRULE_H__47F1A524_1DCF_400F_AEE3_349E9BD0EF50__INCLUDED_)