NMDATETIMEFORMAT structure

Contains information about a portion of the format string that defines a callback field within a date and time picker (DTP) control. It carries the substring that defines the callback field and contains a buffer to receive the string that will be displayed in the callback field. This structure is used with the DTN_FORMAT notification code.

Syntax


typedef struct tagNMDATETIMEFORMAT {
  NMHDR      nmhdr;
  LPCTSTR    pszFormat;
  SYSTEMTIME st;
  LPCTSTR    pszDisplay;
  TCHAR      szDisplay;
} NMDATETIMEFORMAT, *LPNMDATETIMEFORMAT;

Members

nmhdr

Type: NMHDR

An NMHDR structure that contains information about the notification code.

pszFormat

Type: LPCTSTR

A pointer to the substring that defines a DTP control callback field. The substring consists of one or more "X" characters followed by a NULL character. (For more information about callback fields, see Callback fields.)

st

Type: SYSTEMTIME

A SYSTEMTIME structure that contains the date and time to be formatted.

pszDisplay

Type: LPCTSTR

A pointer to a null-terminated string that contains the display text of the control. By default, this is the address of the szDisplay member of this structure. It is acceptable to have pszDisplay point to an existing string. In this case, you do not need to assign a value to szDisplay. However, the string that pszDisplay points to must remain valid until another DTN_FORMAT notification is sent, or until the control is destroyed.

szDisplay

Type: TCHAR

64-character buffer that is to receive the zero-terminated string that the DTP control will display. It is not necessary to fill the entire buffer.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

Unicode and ANSI names

NMDATETIMEFORMATW (Unicode) and NMDATETIMEFORMATA (ANSI)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft