📄 staticimage.h
字号:
/*########################################################################
【文件名】: StaticImage.h
【名 称】: DataWin 封装类.
【版 本】: 1.0
【作 者】: 梁均源
【E-mail】: KelvinSpace@citiz.net
注意:必需保留以上信息!!!
########################################################################*/
#if !defined(AFX_STATICIMAGE_H__E5903692_3ED8_4355_9960_DC54B799653F__INCLUDED_)
#define AFX_STATICIMAGE_H__E5903692_3ED8_4355_9960_DC54B799653F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// StaticImage.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CStaticImage window
#include "Picture.H"
class CStaticImage : public CStatic
{
// Construction
public:
CStaticImage();
CPicture m_Image;
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStaticImage)
//}}AFX_VIRTUAL
// Implementation
public:
void OnSetText(CString strText);
CString GetPath(){return m_strPath;};
void SetPath(LPCSTR pPath){m_strPath = pPath;};
CString GetFileName(){return m_strFileName;};
BOOL Save(LPCSTR pName);
BOOL Load(LPCSTR pName);
void ShowDefault(CDC *pDC, CRect rect);
CString m_strFileName;
CString m_strPath;
virtual ~CStaticImage();
// Generated message map functions
protected:
//{{AFX_MSG(CStaticImage)
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_STATICIMAGE_H__E5903692_3ED8_4355_9960_DC54B799653F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -