Returns the window handle of the edit control portion.
C
HWND WINAPI SftBox_GetHWNDEdit(HWND hwndCtl);
C++
HWND CSftBox::GetHWNDEdit() const;
hwndCtl
The window handle of the combo box control.
The return value is the window handle of the edit control portion. NULL is returned if the combo box is a dropdown list combo box, which does not have an edit control portion.
The GetHWNDEdit function returns the window handle of the edit control portion of a simple or dropdown combo box.
The edit control portion is based on a standard Windows edit control. The window handle can be used to send edit control messages which are not otherwise offered by the combo box.
The edit control can be destroyed and created again by the combo box, for example when the text alignment is changed using SetEditAlign. The window handle should not be saved by the application. The SFTBOXN_EDITCREATED notification is sent to the parent window each time an edit control has been created.
The following functions are available to manipulate the edit control portion without using its window handle: GetEditSel, SetEditSel, GetSelText, SetSelText, GetSelTextLength, LimitText, SetReadOnly, SetEditAlign and SetEditCtlFont.
See Also C/C++ API | Categories | Notifications