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