www.pudn.com > XRayImg.rar > AboutCtrl.h


 
 
#if !defined(AFX_ABOUTCTRL_H__B75B0B9E_367D_11D6_AB38_00D0B70C3D79__INCLUDED_) 
#define AFX_ABOUTCTRL_H__B75B0B9E_367D_11D6_AB38_00D0B70C3D79__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class CAboutCtrl : public CStatic 
{ 
// Construction 
public: 
	CAboutCtrl(); 
 
// Attributes 
protected: 
	HDC m_hLogoDC;  
	HDC m_hBackgroundDC;  
	HDC m_hMemDC;  
	HDC m_hCreditsDC;  
 
	// logo dimensions 
	int m_cxLogo, m_cyLogo; 
	// logo angle 
	int m_xAngle, m_yAngle; 
	// logo 'fly' speed 
	int m_nSpeed; 
	// logo position 
	int m_xPos, m_yPos;  
 
	//Scrolling text's x,y size  
	int m_cxData; 
	int m_cyData; 
 
	int m_nCounter; 
 
	//设置图片 
	UINT m_nBmpLogo; 
	UINT m_nBmpBkg; 
	UINT m_nMemDCStartCx;//设置memdc左侧开始位置 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CAboutCtrl) 
	protected: 
	virtual void PreSubclassWindow(); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void SetCredits(LPCTSTR lpszCredits,UINT nLogo,UINT nBkg,UINT nMemDCStartCx); 
	virtual ~CAboutCtrl(); 
 
	// Generated message map functions 
protected: 
	CString m_strCredits; 
	void Initialize(); 
	void AnimateLogo(); 
	void LoadPicture(int nResourceID, HDC &hDestinationDC, int &nWidth, int &nHeight, HDC hDC); 
	void LoadCredits(HDC &hDestination, int nWidth, int nHeight, HDC hDC); 
 
	//{{AFX_MSG(CAboutCtrl) 
	afx_msg void OnPaint(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnClicked(); 
	//}}AFX_MSG 
 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_ABOUTCTRL_H__B75B0B9E_367D_11D6_AB38_00D0B70C3D79__INCLUDED_)