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

📄 containview.h

📁 本程序是VC为平台开发的股票资讯系统
💻 H
字号:
#if !defined(AFX_CONTAINVIEW_H__C2A02623_2357_11D5_B465_00104B1269BD__INCLUDED_)
#define AFX_CONTAINVIEW_H__C2A02623_2357_11D5_B465_00104B1269BD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ContainView.h : header file
//

#define HISTORYNEWS_DAY 30

/////////////////////////////////////////////////////////////////////////////
// CContainView view

#include "TitleView.h"
#include "StockReferView.h"
#include "TreeCtrlEx.h"

class CContainView : public CView
{
protected:
	CContainView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CContainView)

// Attributes
protected:
	CCJFlatSplitterWnd	m_wndSplitter;
	CFont				m_CaptionFont;
	BOOL				HasCreate[11],HasInit[CATEGORY_NUM];
	CTime				m_CurDate;
	CImageList			m_TreeIconList;
	CString				strParents[11],strToday;
	TV_INSERTSTRUCT		curTreeItem;
	int					weekday,iCurShowItem;
	HTREEITEM			m_hisItem[CATEGORY_NUM][11];
	CCJCaption			m_Caption;

public:
	CDaoDatabase		m_ContentDb;
	BOOL				m_bViewList;
	int					m_SaveNewsChk,m_SaveDays;

// Operations
public:
	void AddTreeItem(int iCurNewsItem, LPCTSTR lpszTitle, int pos = -1);
	BOOL AcceptBody(int iCurItem, LPCTSTR lpszBody);
	BOOL CanDeleteOption();
	void DeleteOption();
	BOOL CanExport();
	void ShowCaptButton();
	BOOL OnCateogryChanged(LPCTSTR lpszTitle, HICON hIcon);
	BOOL InitColum(LPCTSTR lpszTitle, HICON hIcon);
	CStockReferView* GetStockReferView();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CContainView)
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CContainView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	BOOL InitTitleTree();
	void SetTitleTree();
	BOOL DeleteHistoryNews(int m_iHistoryTime);
	BOOL OpenContentDb();
	CTreeCtrlEx& GetTitleTree(int iTitleTree);

	//{{AFX_MSG(CContainView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_CONTAINVIEW_H__C2A02623_2357_11D5_B465_00104B1269BD__INCLUDED_)

⌨️ 快捷键说明

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