SRGComboBox Class

class SRGComboBox

SRGComboBox is an extension of CComboBox with several useful utility functions.
Several functions assume that the 32-bit value associated with each combobox item is a pointer to an SRGraphItemData object.

Defined in: SRGComboBox.h

Class Members

SRGComboBox()

Constructor

virtual void RePositionItemAndData(int nSrcIndex, int nDestIndex)

Remove the item with index nSrcIndex and insert it before

virtual void ReplaceItemData(SEC_DWORD dwOld, SEC_DWORD dwNew)

Replaces the data dwOld with the data dwNew. Every item

virtual int SetCurSelByPtrData(SEC_DWORD dwValue)

Searches the items in the combobox for one that has the specified resource ID

virtual void DeleteItemByData(SEC_DWORD dwItemData)

Deletes the item from the combobox that has the specified resource ID

int AddStringData(LPCTSTR lpszString, SEC_DWORD dwItemData)

Adds a string to the combobox and sets the 32/64-bit value associated with the item to the specified value

int SetCurSelByData(SEC_DWORD dwValue)

Searches the items in the combobox for one that has the specified value

virtual&#09&#09SEC_DWORD GetCurItemData()

Returns the 32/64-bit value associated the currently selected item or CB_ERR

virtual ~SRGComboBox()

Destructor