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

📄 jnbitmapwnd.h

📁 此次上传的使linux下的文件传输协议
💻 H
字号:
#if !defined(AFX_JNBITMAPWND_H__DB688E20_9485_11D3_8126_0000E8235359__INCLUDED_)
#define AFX_JNBITMAPWND_H__DB688E20_9485_11D3_8126_0000E8235359__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MdiClient.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// JnBitmapWnd window
#include "Dibitmap.h"

#define JNBITMAPWND_CLASSNAME _T("JnBitmapWndCtrl")

class JnBitmapWnd;

void AFXAPI DDX_BmpControl(CDataExchange* pDX, int nIDC, JnBitmapWnd& rControl);

class JnBitmapWnd : public CWnd
{
// Construction
public:
	JnBitmapWnd();
    DECLARE_DYNCREATE(JnBitmapWnd)

    BOOL Create(const RECT& rect, CWnd* parent, UINT nID,
		        DWORD dwStyle = WS_CHILD | WS_BORDER | WS_TABSTOP | WS_VISIBLE);
// Attributes
public:
	BOOL SetBitmap(CString sPath,int Type = BITMAP_TILE);
	BOOL SetBitmap(UINT uResource, int Type = BITMAP_TILE);

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(JnBitmapWnd)
	//}}AFX_VIRTUAL

// Implementation
public:
	BOOL RegisterWindowClass();
	virtual ~JnBitmapWnd();
public:
	BOOL m_bCopy;
	void Copy(CDIBitmap* pBmp, int nType = BITMAP_TILE);
	void Remove();
	CString m_sFilePath;
	int			m_nType;		// 看上面的枚举内容
	CDIBitmap*	m_pBmpBackground; //背景图片对象
protected:
	CBrush		m_HollowBrush;

	// Generated message map functions
protected:
	//{{AFX_MSG(JnBitmapWnd)
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
	afx_msg BOOL OnQueryNewPalette();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void	CommonConstruct();

};


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

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

#endif // !defined(AFX_JNBITMAPWND_H__DB688E20_9485_11D3_8126_0000E8235359__INCLUDED_)

⌨️ 快捷键说明

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