NMDATETIMESTRINGA structure (commctrl.h)

Contains information specific to an edit operation that has taken place in a date and time picker (DTP) control. This message is used with the DTN_USERSTRING notification code.

Syntax

typedef struct tagNMDATETIMESTRINGA {
  NMHDR      nmhdr;
  LPCSTR     pszUserString;
  SYSTEMTIME st;
  DWORD      dwFlags;
} NMDATETIMESTRINGA, *LPNMDATETIMESTRINGA;

Members

nmhdr

Type: NMHDR

An NMHDR structure that contains information about this notification code.

pszUserString

Type: LPCTSTR

The address of the zero-terminated string that the user entered.

st

Type: SYSTEMTIME

A SYSTEMTIME structure that must be filled in by the owner when handling the DTN_USERSTRING notification code.

dwFlags

Type: DWORD

The return field. Set this member to GDT_VALID to indicate that the st member is valid or to GDT_NONE to set the control to "no date" status (DTS_SHOWNONE style only).

Remarks

Note

The commctrl.h header defines NMDATETIMESTRING as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header commctrl.h