分类: C/C++
2008-03-17 16:59:38
BOOL CMultiFolderDlg::OnInitDialog() { CDialog::OnInitDialog(); ...... m_imgState.Create(IDB_BITMAP_STATE,13, 1, RGB(255,255,255)); m_imgList.Create(IDB_BITMAP_LIST,16, 1, RGB(255,255,255)); m_tree.SetImageList(&m_imgList,TVSIL_NORMAL); m_tree.SetImageList(&m_imgState,TVSIL_STATE); DWORD dwVersion; BOOL bWinNT = FALSE; dwVersion = GetVersion(); // Get build numbers for Windows NT or Win32s if (dwVersion < 0x80000000) // Windows NT { bWinNT = TRUE; } m_tree.DisplayTree(bWinNT); return TRUE; }
参考资料:徐景洲的三态树的实现