Click here to Skip to main content
15,891,976 members
Articles / Desktop Programming / MFC

Property list ActiveX control

Rate me:
Please Sign up or sign in to vote.
3.88/5 (23 votes)
4 Nov 20043 min read 190.4K   7K   58  
Property list similar to VB.NET, implemented as ActiveX control.
#if !defined(AFX_IMAGEITEM_H__9486A536_26FA_4B25_8BF4_E876A22E5F63__INCLUDED_)
#define AFX_IMAGEITEM_H__9486A536_26FA_4B25_8BF4_E876A22E5F63__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ImageItem.h : header file
//
#include "ListItem.h"
/////////////////////////////////////////////////////////////////////////////
// CImageItem window

class CImageItem : public CListItem
{
// Construction
public:
	CImageItem();

// Attributes
public:

// Operations
public:

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

// Implementation
public:

	void DrawValue(CDC *pDc, CRect rect);
	void DrawCaption(CDC* pDc,CRect rect);
	void CreateControl(CWnd* pParent,CFont* pFont,UINT id);
	int GetItemHeight();
	virtual ~CImageItem();

private:
	CPictureHolder m_picture;
};

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

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

#endif // !defined(AFX_IMAGEITEM_H__9486A536_26FA_4B25_8BF4_E876A22E5F63__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior) RDV Systems
Israel Israel
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions