NMDATETIMEFORMATQUERYA structure (commctrl.h)

Contains information about a date and time picker (DTP) control callback field. It contains a substring (taken from the control's format string) that defines a callback field. The structure receives the maximum allowable size of the text that will be displayed in the callback field. This structure is used with the DTN_FORMATQUERY notification code.

Syntax

typedef struct tagNMDATETIMEFORMATQUERYA {
  NMHDR  nmhdr;
  LPCSTR pszFormat;
  SIZE   szMax;
} NMDATETIMEFORMATQUERYA, *LPNMDATETIMEFORMATQUERYA;

Members

nmhdr

Type: NMHDR

An NMHDR structure that contains information about this notification code.

pszFormat

Type: LPCTSTR

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

szMax

Type: SIZE

A SIZE structure that must be filled with the maximum size of the text that will be displayed in the callback field.

Remarks

Note

The commctrl.h header defines NMDATETIMEFORMATQUERY 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