MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / OnHeaderChanging

Function OnHeaderChanging

Libraries/PropertyGrid/PropertyGrid.h:1121–1135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119 // Header messages
1120
1121 LRESULT OnHeaderChanging(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& bHandled)
1122 {
1123 // HACK: With the PGS_EX_ADDITEMATEND style we need to
1124 // repaint the last item to avoid a paint bug.
1125 // Code supplied by Ludvig A. Norin.
1126 if( (m_di.dwExtStyle & PGS_EX_ADDITEMATEND) != 0 ) {
1127 RECT rcItem = { 0 };
1128 GetItemRect(GetItemCount(), &rcItem, LVIR_BOUNDS);
1129 InvalidateRect(&rcItem, FALSE);
1130 }
1131 // Destroy in-place window before dragging header control
1132 _DestroyInplaceWindow();
1133 bHandled = FALSE;
1134 return 0;
1135 }
1136
1137 LRESULT OnHeaderDblClick(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/)
1138 {

Callers

nothing calls this directly

Calls 3

GetItemRectFunction · 0.85
GetItemCountFunction · 0.70
_DestroyInplaceWindowFunction · 0.70

Tested by

no test coverage detected