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

金融证券系统

开发平台:

Visual C++

  1. #if !defined(AFX_INFOVIEW_H__5930176C_20CB_425B_9B05_FC7B08253945__INCLUDED_)
  2. #define AFX_INFOVIEW_H__5930176C_20CB_425B_9B05_FC7B08253945__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // InfoView.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CInfoView html view
  10. #ifndef __AFXEXT_H__
  11. #include <afxext.h>
  12. #endif
  13. #include <afxhtml.h>
  14. /***
  15. 在线资讯视图
  16. */
  17. class CInfoView : public CHtmlView
  18. {
  19. protected:
  20. CInfoView();           // protected constructor used by dynamic creation
  21. DECLARE_DYNCREATE(CInfoView)
  22. enum infoServers {
  23. serverUnknown = 0x00,
  24. serverMin = 0x01,
  25. serverSelf = 0x02,
  26. serverF10 = 0x03,
  27. serverStockstar = 0x04,
  28. serverSohu = 0x05,
  29. serverSina = 0x06,
  30. server163 = 0x07,
  31. serverShse = 0x08,
  32. serverSzse = 0x09,
  33. serverHkex = 0x0A,
  34. serverLse = 0x0B,
  35. serverNyse = 0x0C,
  36. serverNasdaq = 0x0D,
  37. serverP5w = 0x0E,
  38. serverSsnews = 0x0F,
  39. serverCs = 0x10,
  40. serverMax = 0x10
  41. };
  42. // html Data
  43. public:
  44. //{{AFX_DATA(CInfoView)
  45. // NOTE: the ClassWizard will add data members here
  46. //}}AFX_DATA
  47. // Attributes
  48. public:
  49. inline virtual CStaticDoc* GetDocument()   { return (CStaticDoc *)m_pDocument; }
  50. // Operations
  51. public:
  52. void SetCurrentServer( int nServer );
  53. int GetCurrentServer( );
  54. void OnRefresh( );
  55. void ShowInfo( CStockInfo & info );
  56. BOOL IsViewF10( );
  57. protected:
  58. int m_nServer;
  59. CStockInfo m_infoCurrent;
  60. int m_nServerShowed;
  61. // Overrides
  62. // ClassWizard generated virtual function overrides
  63. //{{AFX_VIRTUAL(CInfoView)
  64. protected:
  65. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  66. virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
  67. virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
  68. //}}AFX_VIRTUAL
  69. // Implementation
  70. protected:
  71. virtual ~CInfoView();
  72. #ifdef _DEBUG
  73. virtual void AssertValid() const;
  74. virtual void Dump(CDumpContext& dc) const;
  75. #endif
  76. // Generated message map functions
  77. //{{AFX_MSG(CInfoView)
  78. afx_msg void OnViewF10();
  79. //}}AFX_MSG
  80. afx_msg LRESULT OnGetViewTitle( WPARAM wParam, LPARAM lParam );
  81. afx_msg LRESULT OnGetViewCmdid( WPARAM wParam, LPARAM lParam );
  82. DECLARE_MESSAGE_MAP()
  83. };
  84. /////////////////////////////////////////////////////////////////////////////
  85. //{{AFX_INSERT_LOCATION}}
  86. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  87. #endif // !defined(AFX_INFOVIEW_H__5930176C_20CB_425B_9B05_FC7B08253945__INCLUDED_)