calldll #user32, "SendMessageA",htext as word,_EM_LIMITTEXT as word, lmt as word, 0 as long, r as long
|
array$(1) = "First item" array$(2) = "Second item" combobox #w.cb, array$(), [cbclick], 20, 20, 270, 40 open "Combobox Limit Text" for window as #w #w "trapclose [quit]" hwndCB = hwnd(#w.cb) limit = 10 calldll #user32, "SendMessageA", hwndCB as ulong, _ _CB_LIMITTEXT as long, limit as long, 0 as long, ret as long wait [quit] close #w end