一、调用过程
1 Call CObject* CRuntimeClass::CreateObject()
1.1 Call CObject::operator new(size_t nSize, LPCSTR lpszFileName, int nLine)
1.2 Call CCtrlView::CCtrlView(LPCTSTR lpszClass, DWORD dwStyle)
1.2.1 CCtrlView::CCtrlView(LPCTSTR lpszClass, DWORD dwStyle)
1.2.1.1..........
1.2.2 Call CCtrlView::CCtrlView(LPCTSTR lpszClass, DWORD dwStyle)'code
2 DWORD dwStyle = AFX_WS_DEFAULT_VIEW & ~WS_BORDER;
Call pWnd->Create(NULL, NULL, dwStyle,rect, this, IdFromRowCol(row, col), pContext)
2.1 CWnd::CreateEx
2.1.1 构造默认CREATESTRUCT cs
2.1.2 BOOL CListView::PreCreateWindow(CREATESTRUCT& cs)
2.1.2.1 BOOL CCtrlView::PreCreateWindow(CREATESTRUCT& cs)
2.1.2.1.1 cs.lpszClass = "SysListView32"
if ((cs.style | WS_BORDER) == AFX_WS_DEFAULT_VIEW)
cs.style = m_dwDefaultStyle & (cs.style | ~WS_BORDER);
2.1.2.1.2 return CView::PreCreateWindo