Process HDN_ITEMCHANGING notifications only when column is being resized

When column resizing is finished, after HDN_ENDTRACK notification there is
also sent one (and last) HDN_ITEMCHANGING notification. We have to skip it
to prevent from sending EVT_HEADER_RESIZING after EVT_HEADER_END_RESIZE
because EVT_HEADER_END_RESIZE should be really the last one event
in the sequence of resizing events (like it's assumed in wxGrid).

Closes #16390.
This commit is contained in:
Artur Wieczorek
2017-11-20 21:32:08 +01:00
parent 8f9c4470d7
commit 1033a1636d
2 changed files with 33 additions and 2 deletions

View File

@@ -139,6 +139,9 @@ private:
// actual column we are dragging or -1 if not dragging anything
int m_colBeingDragged;
// a column is currently being resized
bool m_isColBeingResized;
// the custom draw helper: initially NULL, created on demand, use
// GetCustomDraw() to do it
wxMSWHeaderCtrlCustomDraw *m_customDraw;