Date-Time Control
-
moin moin
ich habe ein klitze kleines problemchen

dieses stückchen code sollte normalerweise mein IDC_DATUM mit einer neuen Zeit versehen... aber es funktioniert nicht...

SendMessage(GetDlgItem(hwnd, IDC_DATUM), DTM_SETSYSTEMTIME, GDT_NONE, (LPARAM)&st);wenn ich am ende das (LPARAM) weglasse, bekomme ich einen fehler:
([..]opos_func.cpp(212): error C2664: 'SendMessageA' : Konvertierung des Parameters 4 von 'SYSTEMTIME *__w64 ' in 'LPARAM' nicht möglich)
wo is der fehler?
eagle2k
-
moin meister ...
Du hast 2 Möglichkeiten:
flag:
Value specifying the action that should be performed. This value must be set to one of the following:GDT_VALID Set the DTP control according to the data within the structure that lpSysTime points to.
GDT_NONE Set the DTP control to "no date" and clear its check box. When this flag is specified, lpSysTime is ignored. This flag applies only to DTP controls that are set to the DTS_SHOWNONE style.
Eine hast Du schon probiert, wie wäre es jetzt mal die andere zu nehmen ?

MfG
RB
-
ehmm, funktioniert irgendwie nicht

es passiert komischerweise gar nichts....