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

金融证券系统

开发平台:

Visual C++

  1. // SelectorView.h : interface of the CSelectorView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_SELECTORVIEW_H__579B4821_52B1_4009_BB3B_590A4D06C998__INCLUDED_)
  5. #define AFX_SELECTORVIEW_H__579B4821_52B1_4009_BB3B_590A4D06C998__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CStaticDoc;
  10. #include "../Dialog/SetGroupDlg.h"
  11. /***
  12. 股票列表视图
  13. */
  14. class CSelectorView : public CFormView
  15. {
  16. protected: // create from serialization only
  17. CSelectorView();
  18. DECLARE_DYNCREATE(CSelectorView)
  19. public:
  20. //{{AFX_DATA(CSelectorView)
  21. enum { IDD = IDD_SELECTOR_FORM };
  22. CStatic m_staticInfo;
  23. CProgressCtrl m_progress;
  24. CButton m_btnRunSelector;
  25. CTechComboBox m_cmbTech;
  26. CKTypeComboBox m_cmbKType;
  27. CDomainComboBox m_cmbStockGroup;
  28. //}}AFX_DATA
  29. // Grid
  30. CGridCtrl m_Grid;
  31. // Attributes
  32. public:
  33. inline virtual CStaticDoc* GetDocument()   { return (CStaticDoc *)m_pDocument; }
  34. BOOL InitializeGrid( );
  35. void SetFont( LPLOGFONT pLogFont );
  36. // Operations
  37. public:
  38. void GetSelectedStocks( CSPStringArray & astr );
  39. void OnDblclkItem( int nStockIndex );
  40. // Overrides
  41. // ClassWizard generated virtual function overrides
  42. //{{AFX_VIRTUAL(CSelectorView)
  43. public:
  44. virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
  45. virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
  46. virtual BOOL PreTranslateMessage(MSG* pMsg);
  47. protected:
  48. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  49. virtual void OnInitialUpdate(); // called first time after construct
  50. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  51. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  52. virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
  53. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  54. virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
  55. virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
  56. //}}AFX_VIRTUAL
  57. // Implementation
  58. public:
  59. virtual ~CSelectorView();
  60. #ifdef _DEBUG
  61. virtual void AssertValid() const;
  62. virtual void Dump(CDumpContext& dc) const;
  63. #endif
  64. protected:
  65. BOOL m_bShouldUpdate;
  66. BOOL m_bRunning;
  67. CStockContainer m_container;
  68. CUIntArray m_signals;
  69. CUIntArray m_reasons;
  70. // operation
  71. // Generated message map functions
  72. protected:
  73. //{{AFX_MSG(CSelectorView)
  74. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  75. afx_msg void OnDestroy();
  76. afx_msg void OnTimer(UINT nIDEvent);
  77. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  78. afx_msg void OnSize(UINT nType, int cx, int cy);
  79. afx_msg void OnSetFocus(CWnd* pOldWnd);
  80. afx_msg void OnFilePrint();
  81. afx_msg void OnUpdateFilePrint(CCmdUI* pCmdUI);
  82. afx_msg void OnRunselector();
  83. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  84. //}}AFX_MSG
  85. afx_msg LRESULT OnGetViewTitle( WPARAM wParam, LPARAM lParam );
  86. afx_msg LRESULT OnGetViewCmdid( WPARAM wParam, LPARAM lParam );
  87. afx_msg LRESULT OnCanCloseView( WPARAM wParam, LPARAM lParam );
  88. afx_msg LRESULT OnColorChange( WPARAM wParam, LPARAM lParam );
  89. DECLARE_MESSAGE_MAP()
  90. };
  91. /////////////////////////////////////////////////////////////////////////////
  92. //{{AFX_INSERT_LOCATION}}
  93. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  94. #endif // !defined(AFX_SELECTORVIEW_H__579B4821_52B1_4009_BB3B_590A4D06C998__INCLUDED_)