It is defined in CommCtrl.h, which you must include. Call CreateWindowEx() to create the control and don't forget to call InitCommonControlsEx().
I also think you must define some macros like WINVER before using it. Just open commctrl.h in a text editor and search for WC_TREEVIEW and see what macros it expects.