⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mystockview.h

📁 一种简单的股票软件源代码,编译后可以实时显示证券行情
💻 H
字号:
// MyStockView.h : interface of the CMyStockView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYSTOCKVIEW_H__54B2AB19_8708_41FA_B071_D669E2F9ABC0__INCLUDED_)
#define AFX_MYSTOCKVIEW_H__54B2AB19_8708_41FA_B071_D669E2F9ABC0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Stockdrv.H"
#include "MyGridFrame.h"

#define	 My_Msg_StkData			WM_APP + 1       //自定义消息

class CGridCtrl;

#include "MyStockDoc.h"


class CMyStockView : public CView
{
protected: // create from serialization only
	CMyStockView();
	DECLARE_DYNCREATE(CMyStockView)

// Attributes
public:
	CMyStockDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyStockView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:

	CMyGridFrame* pGridFrame;
	//CGridCtrl* m_pGridCtrl;//动态显示牌表格
	
	int m_nToal; //计数器

	BOOL m_bStocker;//接收开关
	BOOL m_FillCell;//标志
	BOOL m_bSHnumber;
	BOOL m_bUpdataAllView;


	WORD m_wMarket;
	CString m_sType;
	CFile m_fSHFile,m_fSZFile;


	


	
public:
	int ONNewFile(CString string);
	
	int SetGridData();

	virtual ~CMyStockView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMyStockView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnDestroy();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnStock();
	afx_msg void OnUpdateStock(CCmdUI* pCmdUI);
	afx_msg void OnUnstock();
	afx_msg void OnUpdateUnstock(CCmdUI* pCmdUI);
	//}}AFX_MSG
	afx_msg LONG OnStkDataOK(UINT wFileType,LONG lPara);
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in MyStockView.cpp
inline CMyStockDoc* CMyStockView::GetDocument()
   { return (CMyStockDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYSTOCKVIEW_H__54B2AB19_8708_41FA_B071_D669E2F9ABC0__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -