共用方式為


CB_GETCUEBANNER message

取得顯示在下拉式方塊編輯控件中的提示橫幅文字。 Send this message explicitly or by using the ComboBox_GetCueBannerText macro.

Parameters

wParam [in]

接收提示橫幅文字之 Unicode 字串緩衝區的指標。 呼叫的應用程式負責配置緩衝區的記憶體。 The buffer size must be equal to the length of the cue banner string in WCHARs, plus 1 for the terminating NULLWCHAR.

lParam [in]

The size of the buffer pointed to by wParam in WCHARs.

Return value

如果成功,則傳回 1,否則傳回錯誤值。

如果沒有要取得的提示橫幅文字,則傳回值為 0。 If the calling application fails to allocate a buffer, or set lParam before sending this message, undefined behavior may result and the return value may not be reliable.

Requirements

Requirement Value
最低支援的用戶端
Windows Vista [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 2008 [僅限傳統型應用程式]
Header
CommCtrl.h

See also

組合方塊功能