The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: redskull on November 30, 2008, 11:36:37 PM

Title: Vista Task Dialogs
Post by: redskull on November 30, 2008, 11:36:37 PM
If anyone is interested, here are my notes from adventuring around with Task Dialogs, edited and with examples.  Say what you will about Vista, but these things are the most useful thing to come out of Windows since the start menu.  Perhaps it will help newcomers to the assembly game, or maybe even convince crotchety old-timers to get with the program (pun intended :wink)

astro.temple.edu/~tua59196/TaskDialogs.zip (http://astro.temple.edu/~tua59196/TaskDialogs.zip)

-alan
Title: Re: Vista Task Dialogs
Post by: dacid on December 01, 2008, 08:42:24 AM
good work!  :U thx for sharin!

I have one question... it is posibble to make the kind of dialog wich have a "More information" button wich makes the dialogs grows and show up more information?

Excuse my poor english.
Title: Re: Vista Task Dialogs
Post by: Bill Cravener on December 01, 2008, 11:14:43 AM
Thats a very nice set of examples redskull, thanks for teaching this old guy new stuff! (http://www.quickersoft.com/wink.gif)
Title: Re: Vista Task Dialogs
Post by: Jupiter on December 01, 2008, 05:10:04 PM
redskull
Thank you, very nice example!

dacid

read these articles at CodeProject:

Vista Goodies in C++: Showing Friendly Messages with Task Dialogs (http://www.codeproject.com/KB/vista/VGTaskDialog.aspx)
Vista Goodies in C++: Using TaskDialogIndirect to Build Dialogs that Get User Input (http://www.codeproject.com/KB/vista/VGTaskDialog2.aspx)
Title: Re: Vista Task Dialogs
Post by: redskull on December 01, 2008, 06:56:02 PM
Quote from: dacid on December 01, 2008, 08:42:24 AMit is posibble to make the kind of dialog wich have a "More information" button...

All you should have to do is add the three strings and set the appropriate flags, and it should work itself out.  They are:

pszCollapsedControlText - The button label when collapsed
pszExpandedControlText - The button label when expanded
pszExpandedInformation - The actual information you want to display

TDF_EXPAND_FOOTER_AREA - Toggles between information in the footer, or directly after the button
TDF_EXPANDED_BY_DEFAULT - Start with the information collapsed or not by default

-ac