|
发表于 2012-9-1 13:17:52
|
显示全部楼层
本帖最后由 netegg 于 2012-9-1 13:19 编辑
凑合了一个
[au3]#include <GUIConstantsEx.au3>
#include <GuiDateTimePicker.au3>
#include <winapi.au3>
#include <GUIEdit.au3>
#include <GuiListView.au3>
#include <Editconstants.au3>
#include <WindowsConstants.au3>
Local $iStyle = BitOR($WS_CHILD, $WS_VISIBLE, $ES_AUTOHSCROLL, $ES_LEFT)
$hWnd = GUICreate("My GUI get date", 200, 100, -1, -1)
$date = GUICtrlCreateDate("1980/01/01", 10, 10, 185, 20, $DTS_UPDOWN)
$hEdit = _GUICtrlEdit_Create($hWnd, '', 10, 10, 165, 22, $iStyle)
_GUICtrlEdit_SetSel($hEdit, 0, -1)
$hDC = _WinAPI_GetWindowDC($hEdit)
$hBrush = _WinAPI_CreateSolidBrush(0x0000FF)
Local $stRect = DllStructCreate('int;int;int;int')
DllStructSetData($stRect, 1, 0)
DllStructSetData($stRect, 2, 0)
DllStructSetData($stRect, 3, 160)
DllStructSetData($stRect, 4, 20)
_WinAPI_FrameRect($hDC, DllStructGetPtr($stRect), $hBrush)
GUISetState()
Do
$msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE
[/au3] |
|