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

Method OnCreate

DebugView++/LogView.cpp:279–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279LRESULT 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
301bool Contains(const RECT& rect, const POINT& pt)
302{

Callers

nothing calls this directly

Calls 2

MakeColumnFunction · 0.85
SubclassWindowMethod · 0.45

Tested by

no test coverage detected