SECListBoxEditor::Initialize
Initializes the SECListBoxEditor object by attaching to the list box control identified by uiID.
Defined in: lstbxedt.cpp
Syntax
Initialize(UINT uiID, CWnd* pwndParent, int iFlags)
Initialize(CWnd* pwndParent, UINT uiID, int iFlags)
Return Value
Nonzero if successful, otherwise 0.
Parameters
pwndParent
A pointer to the parent of the list box control.
uiID
The ID of the list box control to attach to.
Comments
This is done by subclassing the list box control and attaching it to the instance of SECListBoxEditor for which Initialize was called.
The style flags, iFlags, indicate what editing features the list box will have. To use these styles, logically OR the ones you require and pass the result via the iFlags parameter. Available styles include:
LBE_BROWSE
Editable list box has a browse button for each item.
LBE_AUTOEDIT
Alphanumeric key starts in-place edit of selected item.
LBE_BUTTONS
Dispaly buttons if individual button flags are also set.
LBE_NEWBUTTON
Display the "New" button if LBE_BUTTONS is also set.
LBE_DELBUTTON
Display the "Delete" button if LBE_BUTTONS is also set.
LBE_UPBUTTON
Display the "Up" button if LBE_BUTTONS is also set.
LBE_DOWNBUTTON
Display the "Down" button if LBE_BUTTONS is also set.
LBE_NOTRAILBLANK
Do not display the editable "trailing" list item.
LBE_TOOLTIPS
Display tooltips for the command buttons.
LBE_SHORTCUTS
Allow keyboard shortcuts for New, Delete, Move, etc.
LBE_DRAGNDROP
Allow items to be drag-n-drop to and from the list.
LBE_DEFAULT
The default combination (ORing) of above style flags (except LBE_NOTRAILBLANK).
iFlags
Flags indicating edit features the list box should have.
See Also