| 277 | } |
| 278 | |
| 279 | LRESULT CLogView::OnCreate(const CREATESTRUCT* /*pCreate*/) |
| 280 | { |
| 281 | DefWindowProc(); |
| 282 | |
| 283 | SetExtendedListViewStyle(GetWndExStyle(0)); |
| 284 | m_hdr.SubclassWindow(GetHeader()); |
| 285 | |
| 286 | m_columns.push_back(MakeColumn(Column::Bookmark, L"", LVCFMT_RIGHT, 20)); |
| 287 | m_columns.push_back(MakeColumn(Column::Line, L"Line", LVCFMT_RIGHT, 60)); |
| 288 | m_columns.push_back(MakeColumn(Column::Date, L"Date", LVCFMT_RIGHT, 90)); |
| 289 | m_columns.back().enable = false; // Default no Date column |
| 290 | m_columns.push_back(MakeColumn(Column::Time, L"Time", LVCFMT_RIGHT, 90)); |
| 291 | m_columns.push_back(MakeColumn(Column::Pid, L"PID", LVCFMT_RIGHT, 60)); |
| 292 | m_columns.push_back(MakeColumn(Column::Process, L"Process", LVCFMT_LEFT, 140)); |
| 293 | m_columns.push_back(MakeColumn(Column::Message, L"Message", LVCFMT_LEFT, 1500)); |
| 294 | UpdateColumns(); |
| 295 | |
| 296 | ApplyFilters(); |
| 297 | |
| 298 | return 0; |
| 299 | } |
| 300 | |
| 301 | bool Contains(const RECT& rect, const POINT& pt) |
| 302 | { |
nothing calls this directly
no test coverage detected