slistview.h

来自「股票软件」· C头文件 代码 · 共 58 行

H
58
字号

#pragma once

#include "GridCtrl.h"

class CSListView : public CView
{
	DECLARE_DYNCREATE(CSListView)
protected:
	CSListView();
	virtual ~CSListView();

protected:
	CGridCtrl	m_Grid;

	int		m_nColSort;
	BOOL	m_bSortAscend;

	BOOL	m_bFirstUpdate;

public:
	void			SetFont(LPLOGFONT pLogFont);

public:
	void			GetSelectedStocks(CSPStringArray & astr);
	
	void			StoreColumnOrderArray();
	
	virtual	void	ResetColumns();
	BOOL			SetAverageItem(CGridCtrl &grid, CStockContainer &container, BOOL bRedraw);
	void			OnDblclkItem(int nStockIndex);

	void			StockInfoChanged(LONG id, CStockInfo & info);
	void			SendRequestQuote(BOOL bForced);

public:
	virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	virtual void OnDraw(CDC* pDC);

protected:

protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnSetFocus(CWnd* pOldWnd);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnSlistExportlist();
	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()
};

⌨️ 快捷键说明

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