Contents Index Topic Contents | ||
Previous Topic: DateTime_SetMonthCalFont Next Topic: DateTime_SetSystemtime |
DateTime_SetRange
BOOL DateTime_SetRange( HWND hwndDT, DWORD flags, LPSYSTEMTIME lpSysTimeArray);Sets the minimum and maximum allowable system times for a date and time picker (DTP) control. You can use this macro or send the DTM_SETRANGE message explicitly.
- Returns nonzero if successful, or zero otherwise.
- hwndDT
- Handle to a DTP control.
- flags
- Value that specifies which range values are valid. This value can be a combination of the following:
GDTR_MIN The first element in the SYSTEMTIME structure array is valid and will be used to set the minimum allowable system time. GDTR_MAX The second element in the SYSTEMTIME structure array is valid and will be used to set the maximum allowable system time. - lpSysTimeArray
- Address of a two-element array of SYSTEMTIME structures. The first element of the SYSTEMTIME array contains the minimum allowable time. The second element of the SYSTEMTIME array contains the maximum allowable time. It is not necessary to fill an array element that is not specified in the flags parameter.
Version 4.70
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.