Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This message is sent by a date and time picker (DTP) control to retrieve the maximum allowable size of the string that will be displayed in callback field. It is sent in the form of a WM_NOTIFY message.

Syntax

DTN_FORMATQUERY 
lpDTFormatQuery = (LPNMDATETIMEFORMATQUERY) 
lParam;

Parameters

lpDTFormatQuery

Long pointer to an NMDATETIMEFORMATQUERYstructure that contains information about the callback field. The structure contains a substring that defines a callback field and receives the maximum allowable size of the of string that will be displayed in the callback field.

Remarks

The owner of the control must calculate the maximum possible width of the text that will be displayed in the callback field, set the szMaxmember of the NMDATETIMEFORMATQUERYstructure, and return zero.

Handling this message prepares the control to adjust for the maximum size of the string that will be displayed in a particular callback field. This enables the control to properly display output at all times, reducing flicker within the control's display. For additional information about callback fields, see Callback Fields.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.