Returns the column number of the column being resized.
C
int WINAPI SftBox_GetResizeColumn(HWND hwndCtl);
C++
int CSftBox::GetResizeColumn() const;
hwndCtl
The window handle of the combo box control.
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.
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