Combo Box Related Dialog Functions

 

COS.ComboShowDropdown - Open/Close dropdown (list box) portion of a combo box control

 

On Entry:          <cosCtlId>                   contains the control ID

 

                        <cosState>                   TRUE to open, FALSE to close

On Exit:

 

 

COS.ComboLimitText - Sets the maximum number of characters allowed in the edit control portion of the combo box

 

On Entry:          <cosCtlId>                   contains the control ID

 

<cosItemSize> contains the maximum characters to allowed

On Exit:

 

 

COS.ComboAddString - Adds a string to a combo box control

 

On Entry:          <cosCtlId>                   contains the control ID

 

                        <cosCtlText$> contains the string to be added

 

On Exit:            <cosItemId>                contains resulting item index

 

 

COS.ComboAddStringData - Same as above but includes an additional 32 bits of data that is stored separately

 

On Entry:          <cosCtlId>                   contains the control ID

 

                        <cosCtlText$> contains the string to be added

 

                        <coswParam>  contains the 32 bits (4 bytes) of data

 

On Exit:            <cosItemId>                contains resulting item index

 

 

COS.ComboSetCurSel - Sets the index of the currently selected item

 

On Entry:          <cosCtlId>                   contains the control ID

 

                        <cosItemId>                contains the index of the item to select

On Exit:

 


COS.ComboGetCurSel - Returns the index of the currently selected item

 

On Entry:          <cosCtlId>                   contains the control ID

 

On Exit:            <cosItemId>                contains the index of the selected item

 

 

COS.ComboSetEditSel - Set the range of selected text In the edit control

 

On Entry:          <cosCtlId>                   contains the control ID

 

<cosStart>                   contains the start position

 

<cosEnd>                    contains the end position

 

On Exit:            <cosFuncResult>          nonzero if the message is successful. It is

CB.ERR if the message is sent to a combo box with the CBS.DROPDOWNLIST style.

 

 

COS.ComboResetContent - Clears the contents of the combo control

 

On Entry:          <cosCtlId>                   contains the control ID

 

On Exit:            <cosFuncResult>          always CB.OKAY

 

 

COS.ComboSetItemData - Adds 32 bits of hidden data to a combo control item

 

On Entry:          <cosCtlId>                   contains the control ID

 

                        <coslParam>                contains the 32 bits (4 bytes) value

On Exit:

 

 

COS.ComboGetItemData - Retrieves the stored 32 bits of hidden item data

 

On Entry:          <cosCtlId>                   contains the control ID

 

On Exit:            <cosFuncResult>          contains 32 bit value