Send the CB_SETCUEBANNER message to the ComboBox control
Code: Select all
MyGui := Gui()
MyGui.AddEdit("w300") ; focused control to show the combobox cue text
Cb01 := MyGui.AddComboBox("w300", ["CB 1", "CB 2", "CB 3"])
CB_SETCUEBANNER(Cb01, "ComboBox Control Cue Text")
MyGui.Show()
CB_SETCUEBANNER(handle, string)
{
static CBM_FIRST := 0x1700
static CB_SETCUEBANNER := CBM_FIRST + 3
SendMessage(CB_SETCUEBANNER, 0, StrPtr(string), handle)
}
It is already on the wish list for v2 (https://www.autohotkey.com/boards/viewtopic.php?t=70852)