imgwnd.h

来自「此书包含了大量的VC程序源代码,对于学习者来说是非常重要的,看后大家对VC将会有」· C头文件 代码 · 共 58 行

H
58
字号
#if !defined(AFX_IMGWND_H__03C774F0_6584_11D6_8F32_00E04CE76240__INCLUDED_)
#define AFX_IMGWND_H__03C774F0_6584_11D6_8F32_00E04CE76240__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CImgWnd window
#define STRECH_1_1		0
#define STRECH_FULL_X	1
#define STRECH_FULL_Y   2
#define STRECH_FULL		3
#define STRECH_CENTER   4

class CImgWnd : public CStatic
{
// Construction
public:
	CImgWnd();
	void SetImage(UINT resID);
	void SetStrechType(int nStrechType);
// Attributes
protected:
	CBitmap m_bmpImage;
	int m_nStrechType;
	CRect m_rcSrc;
	CRect m_rcDst;
// Operations
public:
	
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CImgWnd)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CImgWnd();

	// Generated message map functions
protected:
	//{{AFX_MSG(CImgWnd)
	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_IMGWND_H__03C774F0_6584_11D6_8F32_00E04CE76240__INCLUDED_)

⌨️ 快捷键说明

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