SRGDragListBox Class
class SRGDragListBox
This is a extension class of CDragListBox class. It add some functions to make it easier to work with the item data. This class always add an dummy item at the end of the draglist to overcome the fault that CDragListBox does not allow you to drag an item to the end of the list. It also added the keyboard support to move an item up and down.Defined in: SRGWzDisplay.h
Class Members
virtual void RePositionItemAndData(int nSrcIndex, int nDestIndex)
Move item along with its data from one place to the other.
virtual void ReplaceItemData(SEC_DWORD dwOld, SEC_DWORD dwNew)
Replaces the data dwOld with the data dwNew. Every item
virtual void DeleteItemByData(SEC_DWORD dwItemData)
Deletes the item from the DragListBox that has the specified resource ID
int AddStringData(LPCTSTR lpszString, SEC_DWORD dwItemData)
Adds a string to the DragListBox 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 DragListBox for one that has the specified value
virtual		SEC_DWORD GetCurItemData()
Returns the 32/64-bit value associated the currently selected item or CB_ERR
virtual BOOL ReplaceItemString(int index, LPCTSTR lpszNew)
Replace the string of an item with a new one and return TRUE if successful.
virtual void Dropped(int nSrcIndex, CPoint pt)
Overrider of CDragListBox to handle redraw the list after dropped.
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
Keyboard support of moving item in the list