HeaderPane
Main
Hide
Share Link
Print

ResizeColumn

Returns the column number of the column being resized.

C

int WINAPI SftBox_GetResizeColumn(HWND hwndCtl);

C++

int CSftBox::GetResizeColumn() const;

Parameters

hwndCtl

The window handle of the combo box control.

Returns

GetResizeColumn returns the zero-based column number of the column whose column header resizing area was double-clicked, while a SFTBOXN_LBUTTONDBLCLK_COLUMNRES, SFTBOXN_MBUTTONDBLCLK_COLUMNRES or SFTBOXN_RBUTTONDBLCLK_COLUMNRES notification is being processed. -1 is returned while other mouse button notifications are processed.

Comments

The GetResizeColumn function returns the column number of the column being resized.

GetResizeColumn can be used while processing a SFTBOXN_LBUTTONDBLCLK_COLUMNRES, SFTBOXN_MBUTTONDBLCLK_COLUMNRES or SFTBOXN_RBUTTONDBLCLK_COLUMNRES notification (also when sent for the static portion, see SFTBOXN_MAIN_NOTIFICATION) to determine which column is affected, typically to resize the column using MakeColumnOptimal. The value is updated each time a mouse button notification is sent and is only valid while that notification is being processed. It is not updated for the SFTBOXN_COLUMNSIZE notification, so it cannot be used to determine the column the user resized.

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


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