Sign in to follow this  
Followers 0
mark2004

Checked status of a date control

2 posts in this topic

Anybody know how to go about checking/unchecking the little checkbox you get inside a date control. This checkbox is

part of a date control only when you set the style to $DTS_SHOWNONE.

Share this post


Link to post
Share on other sites



Look at Auto3Lib from PaulIA

_DTP_SetSystemTime($hWnd, $rSystemTime, $iFlag=0)

; Description ..: Sets the currently selected date and time
; Parameters ...: $hWnd         - Handle to control
;                 $rSystemTime  - SYSTEMTIME structure
;                 $iFlag        - Value specifying the action that should be  performed.   This  value
;                   must be set to one of the following:
;                   GDT_VALID - Set the control according  to  the  data  within  the  structure  that
;                     $rSystenTime points to.
;                   GDT_NONE  - Set the control to "no date" and clear its check box.   When this flag
;                     is specified, $rSystemTime is ignored.   This flag applies only to DTP  controls
;                     that are set to the DTS_SHOWNONE style.
; Return values : True on success, otherwise False
; Author .......: Paul Campbell (PaulIA)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0