HeaderPane
Main
Hide
Share Link
Print

WndProc

The window procedures of the date field control and the month calendar control. Exposed for advanced scenarios; applications do not call them directly.

C

LRESULT CALLBACK SftDate_WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
LRESULT CALLBACK SftDate_CalendarWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);

Parameters

hwnd

The window handle of the control.

msg

The message.

wParam

Additional message-specific information.

lParam

Additional message-specific information.

Returns

The return value is the result of the message processing and depends on the message sent.

Comments

SftDate_WndProc is the window procedure of the window class SFTDATE_CLASS (date field control), SftDate_CalendarWndProc the window procedure of the window class SFTCALENDAR_CLASS (month calendar control).

The SftDate_xxx functions accept only windows of the window classes SFTDATE_CLASS and SFTCALENDAR_CLASS. A window of another window class that uses one of these window procedures is not a date field or month calendar control for these functions. An application that needs to process messages of a control subclasses the control window (SetWindowSubclass), which leaves the window class unchanged.

See Also C/C++ API | Categories | Notifications


Last Updated 11/26/2026 - (email)
© 2026 Softel vdm, Inc.