Defines the window that receives the notifications of a control.
C
HWND WINAPI SftDate_GetNotifyWindow(HWND hwndCtl); void WINAPI SftDate_SetNotifyWindow(HWND hwndCtl, HWND hwndNotify);
C++
HWND CSftDate::GetNotifyWindow() const; HWND CSftCalendar::GetNotifyWindow() const; void CSftDate::SetNotifyWindow(HWND hwndNotify); void CSftCalendar::SetNotifyWindow(HWND hwndNotify);
hwndCtl
The window handle of the date field control (SftDate) or the month calendar control (SftCalendar).
hwndNotify
The window handle of the window that receives the WM_NOTIFY messages of the control, or NULL to send them to the parent window.
GetNotifyWindow returns the window handle defined using SetNotifyWindow, or NULL if the notifications are sent to the parent window.
The GetNotifyWindow and SetNotifyWindow functions define and retrieve the window that receives the notifications (WM_NOTIFY messages) of a date field or month calendar control.
By default (NULL) the notifications are sent to the parent window of the control. A window defined using SetNotifyWindow receives all notifications instead, for example when the control is placed in a container window that does not handle them.
The notifications are sent using SendMessage, so the window must belong to the same thread as the control or be prepared to handle a cross-thread SendMessage.
See Also C/C++ API | Categories | Notifications