tags:

views:

124

answers:

3

I'm trying to implement a balloon tip. By following the instructions on this page:

http://msdn.microsoft.com/en-us/library/bb760252%28VS.85%29.aspx

I managed to implement the balloon, but the balloon is not using the appropriate theme under Win7. I read somewhere else that for the balloon to use the right visual style, ComCtl32.dll Version 6 must be used.

http://msdn.microsoft.com/en-us/library/ms997646.aspx

Now, my development platform is Qt. Is there any way to tell Qt to use ComCtl32.dll Version 6? Or am I forced to use Visual Studio?

A: 

Since you use Qt, why don't you use a QToolTip?

gregseth
QToolTip does not have as much functionality as TOOLINFO. TOOLINFO can have icons, you can change the background color, you can give it a "close" button, make it look like a balloon and change the tip position. None of this can be done with a QToolTip.
Austin
+2  A: 

In order to use you need a manifest file (check your second link for the one needed). What visual studio does automatically is add such file as a resource file.

In any case if you have an Application.exe you can provide an external manifest named Application.exe.manifest in the same folder, and windows should load it.

If you have installed windows sdk (free download from microsoft) you can use mt.exe provided by it to embed a manifest. Also there are other ways for doing this with tools provided by mingw.

Ismael
Thanks for the comprehensive answer.
Austin
+2  A: 

I've blogged about this.

Rob
Thank you! Simple and effective.
Austin