| Methods Index |
CNativeListSubclasses:
NListButton, NListBox
CNativeSelectList is an abstract class that adds the functionality for selecting or deselecting one or more items in a native list. It includes functions for finding out whether a given item is selected or (conversely) finding the positions of selected items.
CNativeView. The drawing properties of native views are system-defined.
virtual int GetNumSelectedItems(void);
virtual CStringCollection GetSelectedItems(void);
virtual CStringRW GetFirstSelectedItem(int theNumberOfCharacters = ITEMLENGTH) const;
theNumberOfCharacters specifies the size of the buffer into which the string will be copied. The default length is 255 characters.
virtual int GetSelectPosition(void);
virtual BOOLEAN IsItSelected(int thePosition);
BOOLEAN value of TRUE if the item at that position is selected and FALSE if it is not.
virtual BOOLEAN SelectItem(int thePositionOfItem);
thePositionOfItem), selects the item at that position and returns a BOOLEAN value of TRUE if it succeeds or FALSE if it fails.
virtual BOOLEAN SelectItem(const CStringRW& theTitle);
BOOLEAN value indicating whether the line was actually selected, which depends on whether the position is valid and whether the line was not already selected.
virtual BOOLEAN DeselectItem(int thePositionOfItem);
thePositionOfItem), deselects the item at that position and returns a BOOLEAN value of TRUE if it succeeds or FALSE if it fails.
virtual BOOLEAN DeselectItem(const CStringRW& theTitle);
BOOLEAN value indicating whether the line was actually deselected, which depends on whether the position is valid and whether the line was selected to begin with.
virtual BOOLEAN SelectAll(void);
BOOLEAN value of TRUE if it succeeds or FALSE if it fails.
virtual BOOLEAN DeselectAll(void);
BOOLEAN value of TRUE if it succeeds or FALSE if it fails.
virtual void DoCommand(long theCommand,
void* theData = NULL);
CView::DoCommand to provide handling for TDI commands.
virtual void DoUpdateModel(long theControllerId,
long theCommand, const CModel* theModel);
CView::DoUpdateModel to provide handling of TDI messages.
CNativeSelectList(CSubview* theEnclosure,
const CRect& theRegion,
WIN_TYPE theControlType,
const CStringCollection& theItems,
const CStringRW& theTitle, long
theControlAttributes);
theEnclosure is a pointer to the subview that will contain the native list. theRegion is a coordinate location, local to the enclosure, that is used to place the native list. theControlType specifies one of two possible types of native select lists: WC_LISTBOX, WC_LISTBUTTON. theItems is a list of the strings that the native select list will contain. theTitle is the string that will serve as the title of the native list. Finally, theControlAttributes specifies the XVT Portability Toolkit attributes that determine the special characteristics and initial state of a control when it is created. The possible XVT Portability Toolkit control flags vary from control to control, and only a couple of them are generic to all controls. For information on the possible attributes a particular type of control can have, see the discussions of xvt_ctl_create and CTL_FLAG in the XVT Portability Toolkit Reference.
CNativeSelectList(CSubview* theEnclosure);
theEnclosure.
CNativeSelectList(
const CNativeSelectList& theNativeList);
CNativeSelectList& operator=(
const CNativeSelectList& theNativeList);
virtual ~CNativeSelectList();
void TdiNotifySelections(void);