English
Source / code snippets

Dateedit date create without XProfan

 

CompileMarkSeparation
Source wurde am 15.07.2007 aus der MMJ-Quellcodesammlung (Dietmar Horn) in die Babyklappe auf XProfan.Com abgelegt:
Datum: DateEdit erstellen (ohne XProfan)
DEF DTP_GETSYSTEMTIME(2) SendMessage(&(1),4097,0,&(2))
Declare DateTimePick#,Meldung$,DateButton&
Def @InitCommonControlsEx(1) !COMCTL32,InitCommonControlsEx
DEF @GetSysColor(1) !USER32,GetSysColor
Settruecolor 1
Declare CLASSNAME$,MonthHandle&,HWND&,Windowname#
Declare INITC#,OK&,MESS%,Zahl1&,Zahl2&
Windowstyle 31
Windowtitle DateTimePick
Window 0,0-640,440
CLS @getsyscolor(15)
LET OK&=@CREATEBUTTON(%HWND,OK,10,360,100,30)
LET DateButton&=@CREATEBUTTON(%HWND,Date,120,360,100,30)
LET HWND&=%HWND
DIM INITC#,8
long INITC#,0=8
long INITC#,4=$00000100
@InitCommonControlsEx(INITC#)
LET CLASSNAME$=SysDateTimePick32
LET MonthHandle&=@Control(CLASSNAME$,,$40000000+$10000000+$000D,20,20,200,20,HWND&,2500,%Hinstance,0)
Dispose initc#
Declare Systemtime#
Dim Systemtime#,16
Clear Systemtime#
Word Systemtime#,0=2006
Word Systemtime#,2=1
Word Systemtime#,6=31
@Sendmessage(MonthHandle&,$1002,0,Systemtime#)
Dispose Systemtime#

Whilenot @getfocus(OK&)

    Waitinput

    If GetFocus(DateButton&)

        Dim DateTimePick#,20
        @DTP_GETSYSTEMTIME(MonthHandle&,DateTimePick#)
        Let Meldung$ = Str$(@word(DateTimePick#,6))+.+Str$(@word(DateTimePick#,2))+.+Str$(@word(DateTimePick#,0))
        @MessageBox(Meldung$,Date,0)
        Dispose DateTimePick#

    Endif

wend

 
07/15/07  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.981 Views

Untitledvor 0 min.
Ernst10/06/16
Rainer Hoefs06/14/16
H.Brill11/23/15
ByteAttack11/23/15
More...

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie