Jump to content
Sign in to follow this  
Jej7

Help for TaskDialog

Recommended Posts

Jej7

Translation in English :

Hello, me would like to know how to use the dll comctl32.dll of vista to show a taskDialog?

Here is what looks like TaskDialog:

Posted Image

I think that it is necessary to use the dll comctl32.dll but I do not know how to make.

Thank you for your help.

Français :

Bonjour, je voudrait savoir comment utiliser la dll comctl32.dll de vista pour afficher une taskDialog?

Voilà à quoi ressemble une TaskDialog :

Posted Image

Je pense qu'il faut utiliser la dll comctl32.dll mais je ne sais pas comment faire.

Merci pour votre aide.

Share this post


Link to post
Share on other sites
dbzfanatic
monoceres

Just a quick demo, I'm sure you can figure the rest out for yourself!

$struct=DllStructCreate("wchar string[255]")
DllStructSetData($struct,"string","Hello")
$struct2=DllStructCreate("wchar string[255]")
DllStructSetData($struct2,"string","This is a sample TaskDialog")
DllCall("comctl32.dll","int","TaskDialog","hwnd",Chr(0),"int",Chr(0),"ptr",DllStructGetPtr($struct),"ptr",DllStructGetPtr($struct2),"ptr",Chr(0),"int",0,"ptr",Chr(0),"ptr*",Chr(0))

;)


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
Jej7

Thank you very much !

Thanks to the code of monoceres I managed to personalize TaskDialog.

$struct=DllStructCreate("wchar string[255]")
DllStructSetData($struct,"string","Hello")
$struct2=DllStructCreate("wchar string[255]")
DllStructSetData($struct2,"string","This is a sample TaskDialog")
$struct3=DllStructCreate("wchar string[255]")
DllStructSetData($struct3,"string","The Text  !!!!")
DllCall("comctl32.dll","int","TaskDialog","hwnd",Chr(0),"int",Chr(0),"ptr",DllStructGetPtr($struct),"ptr",DllStructGetPtr($struct2),"ptr",DllStructGetPtr($struct3),"int",32,"ptr",Chr(0),"ptr*",Chr(0))

But I would like to develop her(it) more for which look like GUI :

Posted Image

The resemblance is striking! ;)

The functions are on this page but I do not think which are in the dll : http://msdn.microsoft.com/en-us/library/bb787473(VS.85).aspx

If it is not possible I can try to create my equivalent function.

Share this post


Link to post
Share on other sites
James

Just a quick demo, I'm sure you can figure the rest out for yourself!

$struct=DllStructCreate("wchar string[255]")
DllStructSetData($struct,"string","Hello")
$struct2=DllStructCreate("wchar string[255]")
DllStructSetData($struct2,"string","This is a sample TaskDialog")
DllCall("comctl32.dll","int","TaskDialog","hwnd",Chr(0),"int",Chr(0),"ptr",DllStructGetPtr($struct),"ptr",DllStructGetPtr($struct2),"ptr",Chr(0),"int",0,"ptr",Chr(0),"ptr*",Chr(0))

;)

Alright smart-arse :D

Share this post


Link to post
Share on other sites
monoceres

Alright smart-arse ;)

Well I just had to try it when you said it was hard :D

The functions are on this page but I do not think which are in the dll : http://msdn.microsoft.com/en-us/library/bb787473(VS.85).aspx

If it is not possible I can try to create my equivalent function.

That is not a function, it's a struct that you're supposed to fill your data into and pass to the TaskDialogFunction().

Since this look like UDF material I look into it and post an example later!

;)


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
Jej7

ok thank's !

I succeeded has to create one HUI and finally I continued with this method. I made a version alpha of my future program, I shall put him on-line in a future version.

Thank you for your help, that can always be of use to all the world. ;)

Share this post


Link to post
Share on other sites
ProgAndy

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×