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

📄 winevent.h

📁 股票控件源代码
💻 H
字号:
// WinEvent.h: interface for the CWinEvent class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_WINEVENT_H__803B4DF9_D62D_4E16_AABE_0F7B070B1D22__INCLUDED_)
#define AFX_WINEVENT_H__803B4DF9_D62D_4E16_AABE_0F7B070B1D22__INCLUDED_

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

#include "Event.h"
//视图开窗事件类
class CWinEvent : public CEvent  
{
public:
	CWinEvent(CViewWnd *pViewWnd):CEvent(pViewWnd)
	{
         m_bStart=FALSE;
	}
	virtual ~CWinEvent();
private:
	BOOL m_bStart;
	transf m_trans;
	position m_StartPos;
	void ComputerTransf(vector &MoveVec,double scale=1.0);
	void ZoomWindow(position pos1,position pos2);
public:
	void ZoomWindow(CPoint pt1,CPoint pt2);
	void ComputerTransf(CPoint StartPoint,CPoint EndPoint,double scale=1.0);
protected:
	virtual void OnMouseMove(UINT nFlags, CPoint point);
	//鼠标左键双击事件
	virtual void OnLButtonDblClk(UINT nFlags, CPoint point);
	//鼠标右键双击事件
	virtual void OnRButtonDblClk(UINT nFlags, CPoint point);
	//鼠标左键单击按下事件
	virtual void OnLButtonDown(UINT nFlags, CPoint point);
	//鼠标左键单击弹上事件
	virtual void OnLButtonUp(UINT nFlags, CPoint point);
	//鼠标右键单击按下事件
	virtual void OnRButtonDown(UINT nFlags, CPoint point);
	//鼠标右键单击弹上事件
	virtual void OnRButtonUp(UINT nFlags, CPoint point);
	//键盘按下事件
	virtual void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	//键盘弹上事件
	virtual void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
};

#endif // !defined(AFX_WINEVENT_H__803B4DF9_D62D_4E16_AABE_0F7B070B1D22__INCLUDED_)

⌨️ 快捷键说明

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