ZeeGrid Control Message



An application sends a ZGM_GETREGDATEFORMATTED message to get the specified text representation of the date in the internal date register.

wParam = (WPARAM) (int) iDateFormat; //date format number
lParam = (LPARAM) lpszString;        //pointer to string to return the text representation of a date


The value of wParam. Valid date format numbers are in the range of [0..4].

For example, the date 'February 3, 1965' will be returned as follows for the given formats:

The value of lParam. The date in the internal date register is converted to text in the specified format and returned in the string pointed to by lParam.

The string must be previously allocated and have a minimum length of 19 characters. Failure to preallocate this string will result in undefined behavior, possibly resulting in data loss and/or program crash.

A string of 19 characters is needed to hold the longest formatted date that could possibly be returned. That would be 'September DD, YYYY' and is 18 characters in length. One character is needed for the null termination, thus needing a length of at least 19 characters.

Return Values

This message returns TRUE if the date in the internal date register is valid, otherwise it returns FALSE.

Copyright © 2002-2016 by David Hillard