Ticket #13506 (closed defect: fixed)
Resize column in wxGrid with native header resizes only header
| Reported by: | ivan_14_32 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxGrid | Version: | 2.9-svn |
| Keywords: | Cc: | ||
| Blocked By: | Patch: | no | |
| Blocking: |
Description
wxMSW
Resize column in wxGrid with UseNativeHeader affects only header itself, doesn't resize column in grid main window.
I see it only with comctl32.dll 6.00.2900.6028, with 6.00.2900.5512 works fine.
Difference in notify messages.
6.00.2900.6028 sends HDN_TRACK during column border drag
6.00.2900.5512 sends HDN_ITEMCHANGING during column border drag
In msw/headerctrl.cpp wxHeaderCtrl::MSWOnNotify we have only HDN_ITEMCHANGING processing.
When I change (in wxHeaderCtrl::MSWOnNotify)
case HDN_ITEMCHANGING:
if ( nmhdr->pitem && (nmhdr->pitem->mask & HDI_WIDTH) )
with
case HDN_ITEMCHANGING:
case HDN_TRACK:
if ( nmhdr->pitem && (nmhdr->pitem->mask & HDI_WIDTH) )
resizing works with both version

