CHistoryCombo

CHistoryCombo - Combobox with history
This class is based on CComboBox, and includes support for keeping item history, including reading from and saving to the registry. To read from and save to the registry CHistoryCombo uses a class called CRegKey which is a clone of Microsoft’s ATL class with the same name.
The following members are available:

int AddStringEx(LPCTSTR lpszText)
Use this member to add a string to the historylist. When lpszText is NULL the current text in the edit field will be used.

void LoadHistory(LPCTSTR lpszName)
Member to load history from the registry into the combolist. lpszName is the profile name under which the history has been saved.

void SaveHistory()
Call this member to save the history list to the registry.

void ResetHistory()
Clear history list.

Check out the example to see the class in use.


Download example executable

Download source code
This class is part of the Pablo Software Solutions MFC Extension Package - Controls Edition
 

[Home] [Products] [Source Code] [Downloads]

© 2015 - Pablo Software Solutions
All rights reserved.