ComboBox(Windows)用法

 
TopicContents
ComboBox_AddItemData

Adds item data to the list in a combo box at the specified location. You can use this macro or send the CB_ADDSTRING message explicitly.

ComboBox_AddString

Adds a string to a list in a combo box. If the combo box does not have the CBS_SORT style, the string is added to the end of the list. Otherwise, the string is inserted into the list and the list is sorted. You can use this macro or send the CB_ADDSTRING message explicitly.

ComboBox_DeleteString

Deletes the item at the specified location in a list in a combo box. You can use this macro or send the CB_DELETESTRING message explicitly.

ComboBox_Dir

Adds names to the list displayed by a combo box. The macro adds the names of directories and files that match a specified string and set of file attributes. It can also add mapped drive letters to the list in a combo box. You can use this macro or send the CB_DIR message explicitly.

ComboBox_Enable

Enables or disables a combo box control.

ComboBox_FindItemData

Finds the first item in a combo box list that has the specified item data. You can use this macro or send the CB_FINDSTRING message explicitly.

ComboBox_FindString

Finds the first string in a combo box list that begins with the specified string. You can use this macro or send the CB_FINDSTRING message explicitly.

ComboBox_FindStringExact

Finds the first string in a combo box list that exactly matches the specified string, except that the search is not case sensitive. You can use this macro or send the CB_FINDSTRINGEXACT message explicitly.

ComboBox_GetCount

Gets the number of items in the list box of a combo box. You can use this macro or send the CB_GETCOUNT message explicitly.

ComboBox_GetCueBannerText

Gets the cue banner text displayed in the edit control of a combo box. Use this macro or send the CB_GETCUEBANNER message explicitly.

ComboBox_GetCurSel

Gets the index of the currently selected item in a combo box. You can use this macro or send the CB_GETCURSEL message explicitly.

ComboBox_GetDroppedControlRect

Retrieves the screen coordinates of a combo box in its dropped-down state. You can use this macro or send the CB_GETDROPPEDCONTROLRECT message explicitly.

ComboBox_GetDroppedState

Ascertains whether the drop list in a combo box control is visible. You can use this macro or send the CB_GETDROPPEDSTATE message explicitly.

ComboBox_GetExtendedUI

Ascertains whether a combo box is using the default user interface (UI) or the extended UI. You can use this macro or send the CB_GETEXTENDEDUI message explicitly.

ComboBox_GetItemData

Gets the application-defined value associated with the specified list item in a combo box. You can use this macro or send the CB_GETITEMDATA message explicitly.

ComboBox_GetItemHeight

Retrieves the height of list items in a combo box. You can use this macro or send the CB_GETITEMHEIGHT message explicitly.

ComboBox_GetLBText

Gets a string from a list in a combo box. You can use this macro or send the CB_GETLBTEXT message explicitly.

ComboBox_GetLBTextLen

Gets the length of a string in the list in a combo box. You can use this macro or send the CB_GETLBTEXTLEN message explicitly.

ComboBox_GetMinVisible

Gets the minimum number of visible items in the drop-down list of a combo box.

ComboBox_GetText

Retrieves the text from a combo box control.

ComboBox_GetTextLength

Gets the number of characters in the text of a combo box.

ComboBox_InsertItemData

Inserts item data in a list in a combo box at the specified location. You can use this macro or send the CB_INSERTSTRING message explicitly.

ComboBox_InsertString

Adds a string to a list in a combo box at the specified location. You can use this macro or send the CB_INSERTSTRING message explicitly.

ComboBox_LimitText

Limits the length of the text the user may type into the edit control of a combo box. You can use this macro or send the CB_LIMITTEXT message explicitly.

ComboBox_ResetContent

Removes all items from the list box and edit control of a combo box. You can use this macro or send the CB_RESETCONTENT message explicitly.

ComboBox_SelectItemData

Searches a list in a combo box for an item that has the specified item data. If a matching item is found, the item is selected. You can use this macro or send the CB_SELECTSTRING message explicitly.

ComboBox_SelectString

Searches a list in a combo box for an item that begins with the characters in a specified string. If a matching item is found, the item is selected. You can use this macro or send the CB_SELECTSTRING message explicitly.

ComboBox_SetCueBannerText

Sets the cue banner text that is displayed for the edit control of a combo box.

ComboBox_SetCurSel

Sets the currently selected item in a combo box. You can use this macro or send the CB_SETCURSEL message explicitly.

ComboBox_SetExtendedUI

Selects either the default user interface (UI) or the extended UI for a combo box that has the CBS_DROPDOWN or CBS_DROPDOWNLIST style. You can use this macro or send the CB_SETEXTENDEDUI message explicitly.

ComboBox_SetItemData

Sets the application-defined value associated with the specified list item in a combo box. You can use this macro or send the CB_SETITEMDATA message explicitly.

ComboBox_SetItemHeight

Sets the height of list items or the selection field in a combo box. You can use this macro or send the CB_SETITEMHEIGHT message explicitly.

ComboBox_SetMinVisible

Sets the minimum number of visible items in the drop-down list of a combo box.

ComboBox_SetText

Sets the text of a combo box.

ComboBox_ShowDropdown

Shows or hides the list in a combo box. You can use this macro or send the CB_RESETCONTENT message explicitly.

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值