HeaderPane
Main
Hide
Share Link
Print

CaretColumn

Returns the column where a mouse button was last clicked.

C

int WINAPI SftBox_GetCaretColumn(HWND hwndCtl);

C++

int CSftBox::GetCaretColumn() const;

Parameters

hwndCtl

The window handle of the combo box control.

Returns

The return value is the zero-based column number where a mouse button was last clicked. The return value is -1 if the mouse button has been clicked outside of a column or if no mouse button has been clicked yet.

Comments

The GetCaretColumn function returns the column where a mouse button was last clicked.

The column is updated before the combo box control sends a mouse button notification for the dropdown portion or the static portion (for example SFTBOXN_LBUTTONDOWN_TEXT or SFTBOXN_LBUTTONDBLCLK_CELL), so GetCaretColumn can be used while processing the notification to determine the column that was clicked.

A combo box control does not support cell selection, only an item can be selected (see SetCurSel). Consequently, a function to set the column is not available.

See Also C/C++ API | Categories | Notifications


Last Updated 11/21/2026 - (email)
© 2026 Softel vdm, Inc.