LibUIDK Documentation
ContentsIndexHome
PreviousUpNext
CTreeListCtrl::Create Method
C++
BOOL Create(DWORD dwStyle, const RECT & rect, CWnd * pParentWnd, UINT nID, int nHeaderHeight = 24, BOOL bUseCustomScroll = FALSE, int nScrollWidth = 16);

创建一个TreeList控件, 并把它attache到CTreeListCtrl对象上.

Parameters 
Description 
DWORD dwStyle 
指定Tree控件风格, 参考CTreeCtrl::Create的dwStyle参数. 
const RECT & rect 
指定TreeList控件的位置和大小. 
CWnd * pParentWnd 
指定TreeList控件的父窗口, 不能为NULL. 
UINT nID 
指定TreeList控件的ID. 
int nHeaderHeight = 24 
指定子窗口Header的高度 
BOOL bUseCustomScroll = FALSE 
指定是否使用自绘的Scroll bar 
int nScrollWidth = 16 
指定Scroll bar的宽度. 

如果创建成功, 返回非0值, 否则返回0.