Click here to Skip to main content
15,895,777 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.6K   7K   58  
Property list similar to VB.NET, implemented as ActiveX control.
#if !defined(AFX_COMBOITEM_H__3907A6B7_2B45_4E6E_883A_A02C1BDE4B62__INCLUDED_)
#define AFX_COMBOITEM_H__3907A6B7_2B45_4E6E_883A_A02C1BDE4B62__INCLUDED_

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

class CComboItem : public CComboBox,public CListItem
{
// Construction
public:
	CComboItem();

// Attributes
public:

// Operations
public:

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

// Implementation
public:
	BOOL SetValue(const VARIANT &Value);
	void DeActivate();
	void Activate(CRect rect);
	void Apply();
	void DrawValue(CDC *pDc, CRect rect);
	void CreateControl(CWnd* pParent,CFont* pFont,UINT id);
	virtual ~CComboItem();

	// Generated message map functions
protected:
	//{{AFX_MSG(CComboItem)
	afx_msg void OnPaint();
	afx_msg void OnDropdown();
	afx_msg void OnCloseup();
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnSelchange();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	void FillCombo();
	BOOL m_dropped;
};

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

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

#endif // !defined(AFX_COMBOITEM_H__3907A6B7_2B45_4E6E_883A_A02C1BDE4B62__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