Defines whether the dropdown portion is shown below or above the combo box.
C
BOOL WINAPI SftBox_GetDropDownPosition(HWND hwndCtl); void WINAPI SftBox_SetDropDownPosition(HWND hwndCtl, BOOL fBelow);
C++
BOOL CSftBox::GetDropDownPosition() const; void CSftBox::SetDropDownPosition(BOOL fBelow);
hwndCtl
The window handle of the combo box control.
fBelow
Set to TRUE to show the dropdown portion below the combo box, set to FALSE to show the dropdown portion above the combo box.
GetDropDownPosition returns the preferred position defined using SetDropDownPosition: TRUE if the dropdown portion is shown below the combo box, FALSE if it is shown above the combo box. The actual position may differ if the dropdown portion does not fit at the preferred position (see Comments below).
The GetDropDownPosition and SetDropDownPosition functions define whether the dropdown portion is shown below or above the combo box.
By default, the dropdown portion is shown below the combo box (TRUE).
The position defined is the preferred position. If the dropdown portion does not fit in the available space of the monitor's work area at the preferred position and more space is available on the opposite side of the combo box, the dropdown portion is shown on the opposite side.
If the dropdown portion is shown when SetDropDownPosition is called, it is hidden and the selection is canceled (a SFTBOXN_SELENDCANCEL notification is sent).
SetDropDownPosition is ignored for a simple combo box. Its dropdown portion is always shown below the edit control portion.
See Also C/C++ API | Categories | Notifications