02-15-2009, 11:51 PM
1. The control must be CREATED with SBT_TOOLTIPS style. SetWinStyle will not work. Look in statusbar what is SBT_TOOLTIPS value and add it in dialog definition. It is 0x800.
16 msctls_statusbar32 0x54000100 0x0 0 128 222 14 ""
-->
16 msctls_statusbar32 0x54000900 0x0 0 128 222 14 ""
2. Tooltip is displayed only if statusbar part text is too long, or if there is only icon. This code will add long text to parts 0 and 1, and icon to part 2:
3. Your SB_SETTIPTEXT text code is correct.
16 msctls_statusbar32 0x54000100 0x0 0 128 222 14 ""
-->
16 msctls_statusbar32 0x54000900 0x0 0 128 222 14 ""
2. Tooltip is displayed only if statusbar part text is too long, or if there is only icon. This code will add long text to parts 0 and 1, and icon to part 2:
str p0="part 0"
str p1="part 1"
str sp.all(1000 2 32)
p0+sp
p1+sp
SendMessage hsb SB_SETTEXTA 0 p0
SendMessage hsb SB_SETTEXTA 1 p1
__Hicon-- hi2=GetFileIcon("$qm$\run.ico")
SendMessage(hsb SB_SETICON 2 hi2)
3. Your SB_SETTIPTEXT text code is correct.