Rediger

Del via


DTN_FORMAT notification code

Sent by a date and time picker (DTP) control to request text to be displayed in a callback field. This notification code is sent in the form of a WM_NOTIFY message.

DTN_FORMAT

    lpNMFormat = (LPNMDATETIMEFORMAT) lParam;

Parameters

lParam

A pointer to an NMDATETIMEFORMAT structure containing information regarding this instance of the notification code. The structure contains the substring that defines the callback field and receives the formatted string that the control will display.

Return value

The owner of the control must return zero.

Remarks

Handling this notification code allows the owner of the control to provide a custom string that the control will display. (For additional information about callback fields, see Callback fields.)

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h
Unicode and ANSI names
DTN_FORMATW (Unicode) and DTN_FORMATA (ANSI)