TreeView Class - what to use?

I am trying to create a treeview control.

What do I pass into CreateWindow?

WC_TREEVIEW doesn't exist... what is it defined as? What header file is it in?
Last edited on
I have included windows.h

This was enough to create most controls I have needed... is there a way to do it using only this one header file?
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.
Topic archived. No new replies allowed.