Does it mean that .NMHDR.hwndFrom is the tooltip window associated with the toolbar ??

YES

Only SOMETIMES is OK :grin:

You should have something like this:

.ElseIf uMsg == WM_NOTIFY
MOV EBX,lParam
.If .NMHDR.code== TTN_NEEDTEXT
MOV EAX,.NMHDR.idFrom
.If EAX==IDM_XXXXXXXXXXXX
MOV .TOOLTIPTEXT.lpszText,Offset szXXXXXXXX
.ElseIf EAX==IDM_XXXXXXXXXXXXXXXX
MOV .TOOLTIPTEXT.lpszText,Offset szXXXXXXXXX
.EndIf

;Tooltip is partly shown if parent floats
Invoke SetWindowPos, .NMHDR.hwndFrom, HWND_TOP, 0, 0, 0, 0, SWP_NOACTIVATE OR SWP_NOMOVE or SWP_NOSIZE or SWP_NOOWNERZORDER

I hope this helps

akyprian
Posted on 2003-11-01 07:12:45 by akyprian
Yes akiprian, i've got that kind of code... but i'm using esi and not ebx..
Does it change anything ??
:stupid:
Posted on 2003-11-01 10:26:09 by PhoBos
Definately not! (provided you preserve it)

Can you, please post all your WM_NOTIFY code?

akyprian
Posted on 2003-11-01 12:50:50 by akyprian
Hi PhoBos,

Don't bother for the Toolbar tooltips! I 've taken care of them from within WinAsm. Don't remove your SetWindowPos call. If you haven't already realised, the problem is that under Windows tooltips are always shown behind all WS_POPUP windows (by default). In the new version of WinAsm which I will release in the future the problem will be gone!

The crash problem at your Add-In start up still occurs sometimes in my WinXP machine. Can you please insert debug macros in several places of your load procedure so that we can trace the problem?

Tip: Invoke GetModuleFileName,NULL,ADDR Buffer,MAX_PATH
gives you the WinAsm.exe full path name

akyprian
Posted on 2003-11-02 01:37:59 by akyprian
Hi again,

Here is another tip! (Due to another microsoft bug :grin: )

Use

Invoke GetWindowLong,hTree,GWL_STYLE
PUSH EAX
or EAX,TVS_NOTOOLTIPS
Invoke SetWindowLong,hTree,GWL_STYLE,EAX
POP EAX
Invoke SetWindowLong,hTree,GWL_STYLE,EAX


probably in WM_SIZE of the Docking window procedure. Because If the docking window is floating the treeview tooltips are not shown properly again. I have the very same problem for my Project Explorer tree. Now It's fixed!

akyprian
Posted on 2003-11-02 02:14:37 by akyprian
Hi apkyprian,

Many tx for your help and advices :alright:
Here is a debug version. Please let me know.
I've got no loading prb anymore.
Posted on 2003-11-02 05:12:38 by PhoBos
Hi,

Let's ...
Let's ...
.
.
.
Let's remove debug macros and let Masmer upload it to the WinAsm site !


Everything OK now!

BTW, I wouldn't rely on PathRemoveFileSpec. I would use

;GetModuleFileName returns the length of the string
LEA EDX,Buffer
.While EAX
DEC EAX
.If BYTE PTR !="\"
MOV BYTE PTR ,0
.Else
.Break
.EndIf
.EndW

Regards,

akyprian
Posted on 2003-11-02 08:41:53 by akyprian