The MASM Forum

General => The Workshop => Topic started by: TouEnMasm on August 07, 2014, 06:53:19 AM

Title: Tooltip control Not visible with common control manifest 6
Post by: TouEnMasm on August 07, 2014, 06:53:19 AM
Hello,
It seems I am not the only to have this problem.
Is someone had found a soluce ?
my system is XP SP3.
Thanks
Title: Re: Tooltip control Not visible with common control manifest 6
Post by: dedndave on August 07, 2014, 10:27:49 AM
i've never had a problem   :P

use InitCommonControlsEx with the ICC_BAR_CLASSES flag
ICC_BAR_CLASSES is included in ICC_WIN95_CLASSES, but not in ICC_STANDARD_CLASSES

and, of course, you need the appropriate flags for whatever other controls you might be using

http://msdn.microsoft.com/en-us/library/windows/desktop/bb775507%28v=vs.85%29.aspx (http://msdn.microsoft.com/en-us/library/windows/desktop/bb775507%28v=vs.85%29.aspx)
Title: Re: Tooltip control Not visible with common control manifest 6
Post by: TouEnMasm on August 07, 2014, 03:31:28 PM
Quote
i've never had a problem
This need an enlightment
http://www.masmforum.com/board/index.php?topic=2367.msg18709#msg18709 (http://www.masmforum.com/board/index.php?topic=2367.msg18709#msg18709)
You can also made a try with this demo prog
Title: Re: Tooltip control Not visible with common control manifest 6
Post by: hutch-- on August 07, 2014, 04:06:16 PM
Yves,

It seems to be necessary on at least some langu8age versions of XP that if you use a manifest, you must also call the common control library, I have a couple of progs that misbehaved and would not start on some non English language XP versions. You can check it by removing the manifest and see if the app appears with the older interface components. If this is so, then put the manifest back and enable the common control library.
Title: Re: Tooltip control Not visible with common control manifest 6
Post by: TouEnMasm on August 07, 2014, 05:22:46 PM

Thanks for answer
seems that some styles don't work with common control version 6.00
http://msdn.microsoft.com/en-us/library/windows/desktop/bb760248(v=vs.85).aspx (http://msdn.microsoft.com/en-us/library/windows/desktop/bb760248(v=vs.85).aspx)
To make it work with the manifest,I have used the NULL style,and it work (TTS_ALWAYSTIP work also)

invoke CreateWindowEx,WS_EX_TOPMOST,addr szToolTipClass,NULL,
NULL,0,0,0,0,hWin,NULL,hInstance,NULL
mov    hToolTip,eax