Click here to Skip to main content
15,881,381 members
Articles / Web Development / HTML

A Comprehensive CE Class Library to Replace ATL and MFC

Rate me:
Please Sign up or sign in to vote.
4.48/5 (14 votes)
4 Oct 2000CPOL 277.9K   998   70  
A collection of classes for CE that do not use ATL or MFC, plus an FTP client, database viewer, and sample application that solves beam deflection equations.
// IconComboBox.h : header file
//

#ifndef _ICONCOMBOBOX_H_
#define _ICONCOMBOBOX_H_

//////////////////////////////////////////////////////
//                                                  //
//                   CIconComboBox                  //
//                                                  //
// Copyright (c) Joel Wahlberg ENATOR Networks 1997 //
//               joel.wahlberg@enator.se            //
//                                                  //
//////////////////////////////////////////////////////

#include "CeCombo.h"
#include "CeMisc.h"

class CeIconComboBox : public CeComboBox
{
// Contruction/Destruction
public:
	CeIconComboBox();
	virtual ~CeIconComboBox();

// Attributes
public:
	CeSize m_sizeIcon;
	HIMAGELIST m_hImageList;

// Operations
public:
	virtual int AddIcon(LPCTSTR lpszIconFile);
	virtual int InsertIcon(int nIndex, LPCTSTR lpszIconFile);
	virtual int SelectIcon(LPCTSTR lpszIconFile);
	virtual int SelectIcon(int nIndex);
	virtual int DeleteIcon(LPCTSTR lpszIconFile);
	virtual int DeleteIcon(int nIndex);

// Implementation
public:
	virtual void OnOutputIcon(LPDRAWITEMSTRUCT lpDIS, BOOL bSelected);

// Overrides
	virtual int AddString(LPCTSTR lpszString);
	virtual int InsertString(int nIndex, LPCTSTR lpszString);
	virtual int DeleteString(int nIndex);

	virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMIS);
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDIS);
};

#endif // _ICONCOMBOBOX_H_

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions