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

📄 gradientstatic.h

📁 计算机仿真的实验
💻 H
字号:
#if !defined(AFX_GRADIENTSTATIC_H__0709E3A1_C8B6_11D6_B74E_004033A0FB96__INCLUDED_)
#define AFX_GRADIENTSTATIC_H__0709E3A1_C8B6_11D6_B74E_004033A0FB96__INCLUDED_

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

#include "eatingStruct.h"
#include "resource.h"


/////////////////////////////////////////////////////////////////////////////
// CGradientStatic window



typedef UINT (CALLBACK* LPFNDLLFUNC1)(HDC,CONST PTRIVERTEX,DWORD,CONST PVOID,DWORD,DWORD);
class CGradientStatic : public CStatic
{
// Construction
public:
	CGradientStatic();
	virtual ~CGradientStatic();
	void SetColor(COLORREF cl) {clLeft=cl;};
	void SetGradientColor(COLORREF cl) {clRight=cl;};
	void SetTextColor(COLORREF cl) {clText=cl;};
	CString GetWindowText();
	void SetWindowText(LPCSTR lpszString);
	void SetLeftSpacing(int iNoOfPixels) { m_iLeftSpacing = iNoOfPixels; };
	void SetCenterText(BOOL bCenter = TRUE) { m_bCenter = bCenter; };
	void SetFont(CFont* pF, BOOL bRedraw = TRUE) { pFont = pF; };
	void SetThinkersInfo(Thinkers *m_thinker){ m_pthinker = m_thinker;};
	
// Attributes
public:
  
// Operations
public:
    Thinkers *m_pthinker;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGradientStatic)
	//}}AFX_VIRTUAL

// Implementation
public:
	

	// Generated message map functions
protected:
	CString m_sTEXT;
	int m_iLeftSpacing;
	CFont* pFont;
	long clLeft;
	long clRight;
	long clText;
	BOOL m_bCenter;
	HINSTANCE hinst_msimg32;
	BOOL m_bCanDoGradientFill;
	LPFNDLLFUNC1 dllfunc_GradientFill;
	CBrush m_RunBrush,m_IdleBrush;
	
	CBitmap bmp1,bmp2,bmp3,maskbmp1,maskbmp2,maskbmp3;
	CBitmap zuomianbmp;
	CBrush m_back;
	CPen   m_pen;
public:
	//{{AFX_MSG(CGradientStatic)
	afx_msg void OnPaint();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_GRADIENTSTATIC_H__0709E3A1_C8B6_11D6_B74E_004033A0FB96__INCLUDED_)

⌨️ 快捷键说明

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