📄 stockcontrolctl.h
字号:
#if !defined(AFX_STOCKCONTROLCTL_H__B9AB5A16_9F9D_42F0_9394_BB06FA6E6163__INCLUDED_)
#define AFX_STOCKCONTROLCTL_H__B9AB5A16_9F9D_42F0_9394_BB06FA6E6163__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// StockControlCtl.h : Declaration of the CStockControlCtrl ActiveX Control class.
#include "dcl_graph.h"
#include "StockView.h"
#include "StockKline.h"
/////////////////////////////////////////////////////////////////////////////
// CStockControlCtrl : See StockControlCtl.cpp for implementation.
class CStockControlCtrl : public COleControl
{
DECLARE_DYNCREATE(CStockControlCtrl)
// Constructor
public:
CStockControlCtrl();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStockControlCtrl)
public:
virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
virtual void DoPropExchange(CPropExchange* pPX);
virtual void OnResetState();
//}}AFX_VIRTUAL
// Implementation
private:
CStockView *m_pStockView;
CStockKline *m_pKline;
BOOL LoadKLine(CString strFileName);
protected:
~CStockControlCtrl();
DECLARE_OLECREATE_EX(CStockControlCtrl) // Class factory and guid
DECLARE_OLETYPELIB(CStockControlCtrl) // GetTypeInfo
DECLARE_PROPPAGEIDS(CStockControlCtrl) // Property page IDs
DECLARE_OLECTLTYPE(CStockControlCtrl) // Type name and misc status
// Message maps
//{{AFX_MSG(CStockControlCtrl)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Dispatch maps
//{{AFX_DISPATCH(CStockControlCtrl)
short m_nAction;
afx_msg void OnActionChanged();
afx_msg void LoadKLines(LPCTSTR sFileName);
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
afx_msg void AboutBox();
// Event maps
//{{AFX_EVENT(CStockControlCtrl)
//}}AFX_EVENT
DECLARE_EVENT_MAP()
// Dispatch and event IDs
public:
enum {
//{{AFX_DISP_ID(CStockControlCtrl)
dispidAction = 1L,
dispidLoadKLines = 2L,
//}}AFX_DISP_ID
};
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STOCKCONTROLCTL_H__B9AB5A16_9F9D_42F0_9394_BB06FA6E6163__INCLUDED)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -