This method adds a string to a combo box on the command bar, and associate it with a data element. This method adds the string at the end of the list of strings in the combo box's list box.
Header file: | Afxwin.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
BOOL AddComboBoxString ( UINT wStringResourceID, long lItemData=0 );
BOOL AddComboBoxString ( LPCTSTR lpszString, long lItemData=0 );
Nonzero indicates success. Zero indicates failure.
Use the CB_GETITEMDATA message to retrieve the data you pass to this method in the lItemData parameter.
This method of the CFrameWnd class is unique to Windows CE.