2,可以在视图类的PreCreateWindow()中实现:
For example,
BOOL CTreeViewUUT::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Add your specialized code here and/or call the base class
cs.style |= TVS_HASBUTTONS | TVS_HASLINES |TVS_NOTOOLTIPS;
return CTreeView::PreCreateWindow(cs);
}