02-02-2019, 07:00 AM
It seems it is a bug of tooltip controls. Not related to DT_LbCbOwnerDraw.
In this example, tooltip of listbox, edit and richedit has this bug.
Function Dialog3
Workaround: in dialog editor's Tooltip dialog check "Don't subclass controls". It adds "4":
0 "" 0x90C80AC8 0x0 0 0 224 186 "Dialog" "4"
In this example, tooltip of listbox, edit and richedit has this bug.
Function Dialog3
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 186 "Dialog"
;3 ListBox 0x54230101 0x200 8 8 96 48 "" "tooltip"
;4 Button 0x54032000 0x0 8 60 48 14 "Button" "tooltip"
;5 Edit 0x54030080 0x200 8 80 96 12 "" "tooltip"
;6 ComboBox 0x54230243 0x0 8 96 96 213 "" "tooltip"
;7 RichEdit20A 0x54233044 0x200 8 112 96 16 "" "tooltip"
;8 SysListView32 0x54030000 0x0 8 132 96 48 "" "tooltip"
;END DIALOG
;DIALOG EDITOR: "" 0x2040800 "*" "" "" ""
str controls = "3 5 6 7"
str lb3 e5 cb6 re7
if(!ShowDialog(dd 0 &controls)) ret
Workaround: in dialog editor's Tooltip dialog check "Don't subclass controls". It adds "4":
0 "" 0x90C80AC8 0x0 0 0 224 186 "Dialog" "4"