| 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 | { |
nothing calls this directly
no test coverage detected