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

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

/////////////////////////////////////////////////////////////////////////////
// CMultylineEditItem window

class CMultylineEditItem : public CEdit,public CListItem
{
// Construction
public:
	CMultylineEditItem();

// Attributes
public:

// Operations
public:

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

// Implementation
public:
	void Apply();
	void Activate(CRect rect);
	void DrawValue(CDC *pDc, CRect rect);
	void CreateControl(CWnd* pParent,CFont* pFont,UINT id);
	int GetItemHeight();
	virtual ~CMultylineEditItem();

	// Generated message map functions
protected:
	//{{AFX_MSG(CMultylineEditItem)
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	afx_msg void OnSetfocus();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	CBrush m_brush;
};

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

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

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