Export (0) Print
Expand All
Expand Minimize


Call this function to create a control (a child window) and associate it with the CTreeCtrl object.

virtual BOOL CreateEx( 
   DWORD dwExStyle, 
   DWORD dwStyle, 
   const RECT& rect, 
   CWnd* pParentWnd, 
   UINT nID 


Specifies the extended style of the control being created. For a list of extended Windows styles, see the dwExStyle parameter for CreateWindowEx in the Windows SDK.


Specifies the tree view control's style. Apply window styles, described in CreateWindow, and any combination of tree view control styles as described in the Windows SDK.


A reference to a RECT structure describing the size and position of the window to be created, in client coordinates of pParentWnd.


A pointer to the window that is the control's parent.


The control's child-window ID.

Nonzero if successful otherwise 0.

Use CreateEx instead of Create to apply extended Windows styles, specified by the Windows extended style preface WS_EX_.

Header: afxcmn.h

© 2015 Microsoft