📄 bmpdialog.h
字号:
#if !defined(AFX_BMPDIALOG_H__EBC4261E_BBCC_459F_B204_DF9C217ECB56__INCLUDED_)
#define AFX_BMPDIALOG_H__EBC4261E_BBCC_459F_B204_DF9C217ECB56__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BmpDialog.h : header file
//
# define BITMAP_TILE 0
# define BITMAP_CENTER 1
/////////////////////////////////////////////////////////////////////////////
// CBmpDialog dialog
class CBmpDialog : public CDialog
{
// Construction
public:
afx_msg BOOL OnEraseBkgnd( CDC* pDC );
CBmpDialog(CWnd* pParent = NULL); // standard constructor
void SetBitmap (UINT ResID,int Type=BITMAP_TILE); //该函数装入位图并决定如何显示,缺省放置方式为平铺
// Dialog Data
//{{AFX_DATA(CBmpDialog)
enum { IDD = _UNKNOWN_RESOURCE_ID_ };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBmpDialog)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
int mType; //定义位图放置方式变量
CBrush mHollowBrush; //定义一个画笔类
CBitmap mBitmap; //定义一个位图类
// Generated message map functions
//{{AFX_MSG(CBmpDialog)
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BMPDIALOG_H__EBC4261E_BBCC_459F_B204_DF9C217ECB56__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -