Skip to content

Latest commit

 

History

History
98 lines (76 loc) · 4.79 KB

ns-commctrl-nmdatetimeformatw.md

File metadata and controls

98 lines (76 loc) · 4.79 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:commctrl.tagNMDATETIMEFORMATW
NMDATETIMEFORMATW (commctrl.h)
Contains information about a portion of the format string that defines a callback field within a date and time picker (DTP) control. (Unicode)
*LPNMDATETIMEFORMATW
LPNMDATETIMEFORMAT
LPNMDATETIMEFORMAT structure pointer [Windows Controls]
NMDATETIMEFORMAT
NMDATETIMEFORMAT structure [Windows Controls]
NMDATETIMEFORMATA
NMDATETIMEFORMATW
_win32_NMDATETIMEFORMAT
_win32_NMDATETIMEFORMAT_cpp
commctrl/LPNMDATETIMEFORMAT
commctrl/NMDATETIMEFORMAT
commctrl/NMDATETIMEFORMATA
commctrl/NMDATETIMEFORMATW
controls.NMDATETIMEFORMAT
controls._win32_NMDATETIMEFORMAT
controls\NMDATETIMEFORMAT.htm
Controls
VS|Controls|~\controls\datetime\structures\nmdatetimeformat.htm
12/05/2018
*LPNMDATETIMEFORMATW, LPNMDATETIMEFORMAT, LPNMDATETIMEFORMAT structure pointer [Windows Controls], NMDATETIMEFORMAT, NMDATETIMEFORMAT structure [Windows Controls], NMDATETIMEFORMATA, NMDATETIMEFORMATW, _win32_NMDATETIMEFORMAT, _win32_NMDATETIMEFORMAT_cpp, commctrl/LPNMDATETIMEFORMAT, commctrl/NMDATETIMEFORMAT, commctrl/NMDATETIMEFORMATA, commctrl/NMDATETIMEFORMATW, controls.NMDATETIMEFORMAT, controls._win32_NMDATETIMEFORMAT
commctrl.h
Windows
Windows Vista [desktop apps only]
Windows Server 2003 [desktop apps only]
NMDATETIMEFORMATW (Unicode) and NMDATETIMEFORMATA (ANSI)
Windows
NMDATETIMEFORMATW, *LPNMDATETIMEFORMATW
19H1
tagNMDATETIMEFORMATW
commctrl/tagNMDATETIMEFORMATW
LPNMDATETIMEFORMATW
commctrl/LPNMDATETIMEFORMATW
NMDATETIMEFORMATW
commctrl/NMDATETIMEFORMATW
c++
APIRef
kbSyntax
HeaderDef
Commctrl.h
NMDATETIMEFORMAT
NMDATETIMEFORMATA
NMDATETIMEFORMATW

NMDATETIMEFORMATW structure

-description

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.

-struct-fields

-field nmhdr

Type: NMHDR

An NMHDR structure that contains information about the notification code.

-field 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.)

-field st

Type: SYSTEMTIME

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

-field 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.

-field 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.

-remarks

Note

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