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

📄 stockreferview.h

📁 本程序是VC为平台开发的股票资讯系统
💻 H
字号:
// StockReferView.h : interface of the CStockReferView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_STOCKREFERVIEW_H__C2A02630_2357_11D5_B465_00104B1269BD__INCLUDED_)
#define AFX_STOCKREFERVIEW_H__C2A02630_2357_11D5_B465_00104B1269BD__INCLUDED_

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

#include "StockReferDoc.h"

class CStockReferView : public CEditView
{
protected: // create from serialization only
	CStockReferView();
	DECLARE_DYNCREATE(CStockReferView)

// Attributes
public:
	CStockReferDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CStockReferView)
	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:
	virtual ~CStockReferView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	LOGFONT lfFont;
	CFont m_font;
	CDaoDatabase m_ContentData;
	CString strCurContext[CATEGORY_NUM];

public:
	void FilePrint();
	void FilePrintPreview();
	void ExportToFile();
	void UpdateInfoContent();
	BOOL AcceptBody(int iCurNewsItem, LPCTSTR lpszBody);
	void FontChanged();
	BOOL CanExport();
	BOOL CanActivateCopy();
	void EditCopys();
	void OutFile(LPCTSTR lpszTitle);
	void UpdateNewsContent(int iCurNewsItem);

// Generated message map functions
protected:
	void SaveToFile();
	void UpdateString(LPCTSTR lpszString);
	BOOL KeyScroll(UINT nChar);
	//{{AFX_MSG(CStockReferView)
	afx_msg void OnSetFocus(CWnd* pOldWnd);
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnEditCopys();
	afx_msg void OnEditProperty();
	afx_msg void OnFileExport();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in StockReferView.cpp
inline CStockReferDoc* CStockReferView::GetDocument()
   { return (CStockReferDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_STOCKREFERVIEW_H__C2A02630_2357_11D5_B465_00104B1269BD__INCLUDED_)

⌨️ 快捷键说明

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