gabdube / native-windows-gui

A light windows GUI toolkit for rust
https://gabdube.github.io/native-windows-gui/
MIT License
1.93k stars 125 forks source link

Missing column index parameter for `ListView::column_width()` #287

Open nickbeth opened 3 months ago

nickbeth commented 3 months ago

Issue

ListView::column_width() seems to be missing the column index parameter. This in turn makes it always request the width of the first column (index 0), when the underlying API call lets the user choose which column to query.

Relevant Win32 API reference can be found here.

Fix

Add a column_index parameter to ListView::column_width() and pass it as the wParam of the send_message call.