BaseView.h
上传用户:zhanglf88
上传日期:2013-11-19
资源大小:6036k
文件大小:1k
- #pragma once
- #include "MainFrm.h"
- /***
- 显示股票基本资料的视图
- */
- class CBaseView : public CEditView
- {
- public:
- CBaseView();
- virtual ~CBaseView();
- DECLARE_DYNCREATE(CBaseView)
- protected:
- CStringArray m_astrMsg;
- CStock m_stock;
- CFont m_font;
- // Attributes
- public:
- inline virtual CStaticDoc* GetDocument() { return (CStaticDoc*)m_pDocument; }
- // Operations
- public:
- void SetFont( LPLOGFONT pLogFont );
- void BeginNewLine( );
- void OutputMsgHeader( );
- void OutputMsgLine( const char * line );
- // Overrides
- public:
- //{{AFX_VIRTUAL(CBaseView)
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual void OnInitialUpdate();
- protected:
- virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
- virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
- //}}AFX_VIRTUAL
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- protected:
- //{{AFX_MSG(CBaseView)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnDestroy();
- afx_msg void OnEditChange();
- afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
- //}}AFX_MSG
- afx_msg LRESULT OnGetViewTitle( WPARAM wParam, LPARAM lParam );
- afx_msg LRESULT OnGetViewCmdid( WPARAM wParam, LPARAM lParam );
- afx_msg LRESULT OnColorChange( WPARAM wParam, LPARAM lParam );
- afx_msg LRESULT OnStkReceiverData( WPARAM wParam, LPARAM lParam );
- DECLARE_MESSAGE_MAP()
- };