Ermittelt das aktuell ausgewählte Datum
#include <GuiMonthCal.au3>
_GUICtrlMonthCal_GetCurSel ( $hWnd )
| $hWnd | Control-ID / Handle des Controls |
- - - - - - - - Erklärung der Controls - - - - - - - -
$tagSYSTEMTIME, _GUICtrlMonthCal_GetCurSelStr, _GUICtrlMonthCal_SetCurSel
#include "Extras\HelpFileInternals.au3"
#include <GUIConstantsEx.au3>
#include <GuiMonthCal.au3>
#include <WindowsStylesConstants.au3>
Global $_g_idLst_Memo
Example()
Func Example()
; Erstellt eine GUI
GUICreate("MonthCal: Setzt und ermittelt das aktuell ausgewählte Datum (v" & @AutoItVersion & ")", 600, 300)
Local $idMonthCal = GUICtrlCreateMonthCal("", 4, 4, -1, -1, $WS_BORDER, 0x00000000)
; Erstellt ein Memo Control
_MemoCreate(4, 168, 392, 128, 0)
GUISetState(@SW_SHOW)
; Ermittelt/Setzt das ausgewählte Datum
_GUICtrlMonthCal_SetCurSel($idMonthCal, @YEAR, 8, 19)
Local $tTime = _GUICtrlMonthCal_GetCurSel($idMonthCal)
_MemoWrite("Aktuell ausgewähltes Datum : " & StringFormat("%02d/%02d/%04d", DllStructGetData($tTime, "Month"), _
DllStructGetData($tTime, "Day"), _
DllStructGetData($tTime, "Year")))
; Die Schleife wiederholt sich, bis der Benutzer eine Beenden-Aktion auslöst
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
EndFunc ;==>Example