powerstatectrl.h

来自「电机控制发系统」· C头文件 代码 · 共 71 行

H
71
字号
#if !defined(AFX_POWERSTATECTRL_H__F28B2EA2_795E_4C66_BF9E_60FD7C2238A6__INCLUDED_)
#define AFX_POWERSTATECTRL_H__F28B2EA2_795E_4C66_BF9E_60FD7C2238A6__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CPowerStateCtrl window

class CPowerStateCtrl : public CStatic
{
// Construction
public:
	CPowerStateCtrl();


private:
	void Initialize();
	HDC		m_hPowerDC1; 
	HDC		m_hPowerDC2; 
	HDC		m_hPowerDC3; 
	HDC		m_hPowerDC4; 
	HDC		m_hMemDC; 
	BOOL    m_bIsPowering; 
	int     m_cxAngle,m_cyAngle;

protected:
	int		m_nControl;

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPowerStateCtrl)
	public:
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetCtrlTimer(int nTime);
	BOOL GetPowerCtrlState();
	void SetPowerCtrlState(BOOL bState);
	virtual ~CPowerStateCtrl();

	// Generated message map functions
protected:
	void LoadPicture(int nResourceID, HDC &hDestinationDC, int &nWidth, int &nHeight, HDC hDC);
	//{{AFX_MSG(CPowerStateCtrl)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnPaint();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_POWERSTATECTRL_H__F28B2EA2_795E_4C66_BF9E_60FD7C2238A6__INCLUDED_)

⌨️ 快捷键说明

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