02-14-2023, 10:13 AM
Hi,
How to add EM_SETCUEBANNER to QM_ComboBox control?
The following code only works for the first QM_ComboBox control
Thanks for any advice and help
david
Macro Macro3
How to add EM_SETCUEBANNER to QM_ComboBox control?
The following code only works for the first QM_ComboBox control
Thanks for any advice and help
david
Macro Macro3
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog" "4"
;3 Edit 0x54030080 0x200 32 8 96 12 ""
;4 QM_ComboBox 0x54030242 0x0 32 32 96 13 ""
;5 QM_ComboBox 0x54030242 0x4 32 56 96 13 ""
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040C02 "*" "" "" ""
str controls = "3 4 5"
str e3 qmcb4 qmcb5
qmcb4=
;
;hello
;world
qmcb5=
;
;hello
;world
if(!ShowDialog(dd &sub.DlgProc &controls)) ret
#sub DlgProc
function# hDlg message wParam lParam
sel message
,case WM_INITDIALOG
,SendMessage id(3 hDlg) EM_SETCUEBANNER 1 @"Tip txt1"
,SendMessage id(1001 hDlg) EM_SETCUEBANNER 1 @"Tip txt2"
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1