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

📄 croundctrl.h

📁 USB接口虚拟示波器软件软件工程
💻 H
字号:
#if !defined(AFX_CROUNDCTRL_H__4C01C64E_4019_4428_BB59_BFBFE367D746__INCLUDED_)
#define AFX_CROUNDCTRL_H__4C01C64E_4019_4428_BB59_BFBFE367D746__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CCRoundCtrl window

class CCRoundCtrl : public CButton
{
// Construction
public:
	CCRoundCtrl();

// Attributes
public:
	
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCRoundCtrl)
	public:
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void PreSubclassWindow();
	virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
public:
	void Drawstutas(CDC *pDC,CRect selRect);
	void SetStartPoint(float sum_A,float start_A);
	void SetLineColor(COLORREF color);
	void SetTextColor(COLORREF color);
	void SetBKColor(COLORREF color);
	void SetSwitchName(LPCSTR name);
	int GetSelectSwitch();
	void SetStartSwitch(int sit);
	void SetDisString(CString str);
	void SetSwitchNumber(int Number);
	virtual ~CCRoundCtrl();

	// Generated message map functions
protected:
	CBitmap Bitmap;
//	CBitmap backBitmap;
	CBitmap B_point;
 	BITMAP bm,m_bm;
	CRect  rect,roundRect;
	CRect selRect;
	double a,start_a,sum_a,START_A;
	int SwitchNumber;
	double step_a;
	CString disStr;
	CFont sFont;
	char dismes[20][10];
	CPoint m_ptClicked;
    int Select;
	COLORREF backColor;
    COLORREF textColor;
	COLORREF lineColor;
	CString SwitchName;
protected:
	//{{AFX_MSG(CCRoundCtrl)
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnPaint();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);

	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_CROUNDCTRL_H__4C01C64E_4019_4428_BB59_BFBFE367D746__INCLUDED_)

⌨️ 快捷键说明

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