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

📄 jpgshowctlctl.h

📁 当时做多媒体作业
💻 H
字号:
#if !defined(AFX_JPGSHOWCTLCTL_H__7D638739_EFCA_4835_872F_528530EE705D__INCLUDED_)
#define AFX_JPGSHOWCTLCTL_H__7D638739_EFCA_4835_872F_528530EE705D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

// JpgShowCtlCtl.h : Declaration of the CJpgShowCtlCtrl ActiveX Control class.

/////////////////////////////////////////////////////////////////////////////
// CJpgShowCtlCtrl : See JpgShowCtlCtl.cpp for implementation.

class CJpgShowCtlCtrl : public COleControl
{
	DECLARE_DYNCREATE(CJpgShowCtlCtrl)

// Constructor
public:
	LPPICTURE	m_pPicture;		//IPicture
	COLORREF	m_crBackground;	//背景色
	COLORREF    m_borderColor;	//边框颜色
	CString m_jpgFileName;
	CJpgShowCtlCtrl();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CJpgShowCtlCtrl)
	public:
	virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
	virtual void DoPropExchange(CPropExchange* pPX);
	virtual void OnResetState();
	//}}AFX_VIRTUAL

// Implementation
protected:
	~CJpgShowCtlCtrl();

	DECLARE_OLECREATE_EX(CJpgShowCtlCtrl)    // Class factory and guid
	DECLARE_OLETYPELIB(CJpgShowCtlCtrl)      // GetTypeInfo
	DECLARE_PROPPAGEIDS(CJpgShowCtlCtrl)     // Property page IDs
	DECLARE_OLECTLTYPE(CJpgShowCtlCtrl)		// Type name and misc status

// Message maps
	//{{AFX_MSG(CJpgShowCtlCtrl)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

// Dispatch maps
	//{{AFX_DISPATCH(CJpgShowCtlCtrl)
	afx_msg void ShowFileName(LPCTSTR strFileName);
	afx_msg void Erase();
	afx_msg void SetBorderColor(OLE_COLOR borderColor);
	//}}AFX_DISPATCH
	DECLARE_DISPATCH_MAP()

// Event maps
	//{{AFX_EVENT(CJpgShowCtlCtrl)
	void FireDoubleMouse()
		{FireEvent(eventidDoubleMouse,EVENT_PARAM(VTS_NONE));}
	//}}AFX_EVENT
	DECLARE_EVENT_MAP()

// Dispatch and event IDs
public:
	enum {
	//{{AFX_DISP_ID(CJpgShowCtlCtrl)
	dispidShowFileName = 1L,
	dispidErase = 2L,
	dispidSetBorderColor = 3L,
	eventidDoubleMouse = 1L,
	//}}AFX_DISP_ID
	};
};

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

#endif // !defined(AFX_JPGSHOWCTLCTL_H__7D638739_EFCA_4835_872F_528530EE705D__INCLUDED)

⌨️ 快捷键说明

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