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

Function SetExtendedGridStyle

Libraries/PropertyGrid/PropertyGrid.h:222–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220 }
221
222 void SetExtendedGridStyle(DWORD dwExtStyle)
223 {
224 // Handle change of PGS_EX_ADDITEMATEND flag
225 if( (m_di.dwExtStyle & PGS_EX_ADDITEMATEND) != 0
226 && (dwExtStyle & PGS_EX_ADDITEMATEND) == 0 )
227 {
228 // Remove AppendAction item
229 DeleteItem(TBase::GetItemCount()-1);
230 }
231 if( (dwExtStyle & PGS_EX_ADDITEMATEND) != 0
232 && (m_di.dwExtStyle & PGS_EX_ADDITEMATEND) == 0 )
233 {
234 // Add AppendAction item
235 InsertItem(TBase::GetItemCount(), PropCreateAppendActionItem(_T("")));
236 }
237 // Assign new style
238 m_di.dwExtStyle = dwExtStyle;
239 // Recalc colours and fonts
240 SendMessage(WM_SETTINGCHANGE);
241 }
242
243 DWORD GetExtendedGridStyle() const
244 {

Callers

nothing calls this directly

Calls 4

DeleteItemFunction · 0.70
GetItemCountFunction · 0.70
InsertItemFunction · 0.70

Tested by

no test coverage detected