Affiche une bo�te de dialogue "About" de Windows
#include <WinAPIDlg.au3>
_WinAPI_ShellAboutDlg ( $sTitle, $sName, $sText [, $hIcon = 0 [, $hParent = 0]] )
$sTitle | Le titre de la bo�te de dialogue "A propos" de Windows. |
$sName | La premi�re ligne apr�s le texte "Microsoft". |
$sText | Le texte � afficher dans la bo�te de dialogue apr�s les informaions de version et de copyright. |
$hIcon | [optionnel] Handle de l'ic�ne que la fonction doit afficher dans la bo�te de dialogue. |
$hParent | [optionnel] Handle de la fen�tre parent. |
Succ�s: | Retourne True. |
�chec: | Retourne False. |
Consultez ShellAbout dans la librairie MSDN.
#include <GUIConstantsEx.au3> #include <WinAPIDlg.au3> #include <WinAPIShellEx.au3> Local $hForm = GUICreate('Test '& StringReplace(@ScriptName, '.au3', '()'), 400, 400) Local $idButton = GUICtrlCreateButton('About', 165, 366, 70, 23) GUICtrlSetState($idButton, $GUI_DEFBUTTON) GUISetState(@SW_SHOW) Send('{Enter}') Local $iMsg Do $iMsg = GUIGetMsg() If $iMsg = $idButton Then _WinAPI_ShellAboutDlg('About', 'About Dialog Box Test', 'Simple Text', _WinAPI_ShellExtractIcon(@AutoItExe, 0, 32, 32), $hForm) EndIf Until GUIGetMsg() = $GUI_EVENT_CLOSE