Wednesday, November 14, 2007

AVTD (Another Vista TaskDialog) - Vista TaskDialog Wrapper and Emulator

CodeProject - Vista TaskDialog Wrapper and Emulator

comparison1

"...

Basically, I wanted a class which would wrap the TaskDialog so that on a Vista machine it would invoke the native TaskDialog in COMCTL32.dll v6 (which ships with Vista), while on pre-vista machines it would emulate the TaskDialog with a near identical substitute.
Massive credit must go to KevinGre for his superb article "TaskDialog for Winforms" which wraps the COMCTL32 TaskDialog API. The only changes made to his code were as follows :-

[1] Prefixed class/enum/struct names with "VistaXxxx" (e.g. "TaskDialog" -> "VistaTaskDialog") for the sake of clarity

[2] Implemented the bug fix for x64 machines mentioned in the comments section at the bottom of his article

This project takes Kevin's work a step further, in that the TaskDialog is no longer restricted to Windows Vista. You can now use the same code to display a TaskDialog without worrying about the Windows version.

..."

I have serious TaskDialog envy and really want to use it on pre-Vista projects so I've been keeping my eyes open for them. This one looks pretty darn complete and I like that on Vista it "goes native"...

No comments: