miniframe.h

来自「一个操作系统资源监测器的需求、设计与实现」· C头文件 代码 · 共 69 行

H
69
字号
#if !defined(AFX_MINIFRAME_H__53F7DC56_E8F4_4A1E_A619_8BA1AC4E13A0__INCLUDED_)
#define AFX_MINIFRAME_H__53F7DC56_E8F4_4A1E_A619_8BA1AC4E13A0__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CMINIFRAME dialog

class CMINIFRAME : public CDialog
{
// Construction
public:
	CWnd* parent;

	BOOL * objFlag;
	COLORREF color[4][5];
	int level[4][5];
	int COLCYC;

	CBitmap bitmap;

	CMINIFRAME(CWnd* pParent = NULL);   // standard constructor

	void PassData(int *flag,int colCyc);

// Dialog Data
	//{{AFX_DATA(CMINIFRAME)
	enum { IDD = IDD_MINIFRAME };
	CButton	m_control;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMINIFRAME)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	int CheckPoint(CPoint p,CRect rc);
	void DrawCurrent(CDC *pDC,int x0,int y0,int dx,int dy,int percent,COLORREF curColor);
	int CheckLevel(int usage, int nID);
	void DrawBackGround(CDC *pDC, int x0, int y0, int dx, int dy);
	void DrawDynInfo(int obj,int nID);
	void GetLevelInfo();

	// Generated message map functions
	//{{AFX_MSG(CMINIFRAME)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnClose();
	afx_msg void OnCtrl();
	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_MINIFRAME_H__53F7DC56_E8F4_4A1E_A619_8BA1AC4E13A0__INCLUDED_)

⌨️ 快捷键说明

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