[Almost Solved]How to create these kind of dialogs in Windows Vista? (see picture)
How to create these kind of dialogs in Vista?
http://mike.thedt.net/images/temp/vistadialog.png
Screenshot taken from "Spider Solitaire" game.
I have seen other pre-installed games in Vista using this dialog, so it must be some sort of an API call and not designed form (or something similar)
Anybody has any more information?
Thanks :)
Re: How to create these kind of dialogs in Windows Vista? (see picture)
You need to use the TaskDialogIndirect API call.
Re: How to create these kind of dialogs in Windows Vista? (see picture)
Aha.
Thank you very much :)
Now, I just have to install VB in my Vista test machine to experiment with it :D
Re: [Solved]How to create these kind of dialogs in Windows Vista? (see picture)
Hmmmm...
I found an example on VBThnuder, but I can't get it to work :S
It says "Run-time error '453': Can't find DLL entry point TaskDialogIndirect in comctl32.dll"
I have also tried compiling the application, but it still doesn't work :-/
And I'm sure I am using Vista... :P
Re: [Almost Solved]How to create these kind of dialogs in Windows Vista? (see picture)
Re: [Almost Solved]How to create these kind of dialogs in Windows Vista? (see picture
Hmm...
It works if I point directly to the comctl32.dll on the folder you said (C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6000.16386_none_5d07289e07e1d100\comctl32.dll)
So this means that I must point to that file directly (but it's not recommended, because the user could have another version of windows, or installed windows into another directory instead of "C:\Windows") or pack that version of comctl32.dll with my application (just tested, it won't work... I though that Windows first tries to use the DLL in the app's folder and then the version that is in the Windows directory) eh?
Also, how can I use the style of buttons that are on the picture (button with title and description)
Re: [Almost Solved]How to create these kind of dialogs in Windows Vista? (see picture)
I'm actually working on the TaskDialogindirect right now for a FAQ. Almost finished but still having a few issues.
A undesireable workaround is to use a manifest file for VB6 which links by the token instead of the file location. Only issues are that it creates a few undesireable things like cant use the color picker and the blackening of certain controls that dont have a DC.
If you create a manifest for the executable of your app and run it, it will then work but if you want to debug with it then the vb6.exe manifest will be needed.