Opens the dropdown of a date field control.
C
BOOL WINAPI SftDate_OpenDropDown(HWND hwndCtl);
C++
BOOL CSftDate::OpenDropDown();
hwndCtl
The window handle of the date field control (SftDate).
The return value is TRUE if the dropdown was opened. FALSE is returned if it is already open, the field is disabled, the field has no dropdown (SFTDATE_BUTTONS_UPDOWN, see SetButtons) or the application canceled it in the NM_SFTDATE_DROPDOWNOPENING notification.
The OpenDropDown function opens the dropdown, as the dropdown button, Alt+Down or F4 do. A part being edited is completed first. The control sends NM_SFTDATE_DROPDOWNOPENING, which can cancel it, then NM_SFTDATE_DROPDOWNOPENED.
The dropdown never takes the input focus: the field keeps it and passes the keys on to the dropdown. This function applies to the date field control only. For a month calendar control, OpenDropDown has no effect and returns FALSE.
See Also C/C++ API | Categories | Notifications