Returns the window handle of the dropdown portion.
C
HWND WINAPI SftBox_GetHWNDDropDown(HWND hwndCtl);
C++
HWND CSftBox::GetHWNDDropDown() const;
hwndCtl
The window handle of the combo box control.
The return value is the window handle of the dropdown portion.
The GetHWNDDropDown function returns the window handle of the dropdown portion.
The dropdown portion is a window that exists as long as the combo box exists, even while it is not shown. In a simple combo box, it is a child window of the combo box. In a dropdown and a dropdown list combo box, it is a separate window which is not a child window of the combo box, so it can extend beyond the combo box and its parent window.
The window handle can be used with Windows functions that provide information about a window, such as IsWindowVisible or GetWindowRect. An application should not move, resize, show, hide or destroy this window. Use the functions provided by the combo box instead, for example ShowDropDown, SetDroppedHeight, SetDroppedWidth and GetDroppedControlRect.
See Also C/C++ API | Categories | Notifications