15#include <owl/picklist.rh>
226 return Strings->
Size()-1;
236 if (list && list->GetHandle())
237 list->AddString(str);
250 Strings->
ForEach(owl::AddToList, &List);
#define PRECONDITION(condition)
Typically used to obtain information from a user, a dialog box is a window inside of which other cont...
void CloseWindow(int retValue=IDCANCEL) override
Overrides the virtual function defined by TWindow and conditionally shuts down the dialog box.
void SetupWindow() override
Overrides the virtual function defined in TWindow.
An interface object that represents a corresponding list box element.
virtual int SetSelIndex(int index)
For single-selection list boxes.
virtual int AddString(LPCTSTR str)
Adds str to the list box, returning its position in the list (0 is the first position).
int SetCaretIndex(int index, bool partScrollOk)
Sets the focus to the item specified at index.
virtual int GetCount() const
Returns the number of items in the list box, or a negative value if an error occurs.
virtual void ClearList()
Clears all the entries in the associated listbox.
virtual int GetSelIndex() const
For single-selection list boxes.
void ForEach(IterFunc iter, void *args)
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
bool PumpWaitingMessages()
The inner message loop.
The PickListDialog allows selection of an item from a list in a dialog with OK and Cancel buttons.
int AddString(LPCTSTR str)
Adds a string to the Strings list and to the List box if it has already been created.
void CmCancel()
User-selected Cancel.
void SetupWindow() override
Override from TDialog.
~TPickListDialog() override
Deletes any allocated string.
void ClearStrings()
Clears all strings from the list.
void CmOK()
User-selected OK. Gets selection from the listbox and returns it.
TPickListDialog(TWindow *parent, TStringArray *strings=0, int initialSelection=0, TResId templateId=0, LPCTSTR title=0, TModule *module=0)
Initialize the dialog.
TPoint is a support class, derived from tagPOINT.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
static TPoint GetCursorPos()
tstring LoadString(uint id) const
TApplication * GetApplication() const
Gets a pointer to the TApplication object associated with this.
virtual bool Create()
Creates the window interface element to be associated with this ObjectWindows interface element.
bool IsWindow() const
Returns true if an HWND is being used.
void SetCaption(LPCTSTR title)
Copies title to an allocated string pointed to by title.
HWND THandle
TWindow encapsulates an HWND.
HWND GetHandle() const
Returns the handle of the window.
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
Object Windows Library (OWLNext Core)
LRESULT TResult
Result type.
#define REINTERPRET_CAST(targetType, object)
Definition of classes TPickListPopup & TPickListDialog.
#define EV_LBN_DBLCLK(id, method)
#define EV_COMMAND(id, method)
Response table entry for a menu/accelerator/push button message.