Skip to main content
gamedev.net
🔒 Locked

Tree Control

Started by EddieCai Nov 27, 2001 at 11:51 PM 0 replies 450+ views
Original Post
EddieCai
EddieCai
How can I use tree control in my program using SDK? I know it''s easy when i use MFC, but...
JY
JY
You need to call InitCommonControls to ensure that the correct DLL is loaded.

Then you create a tree view using CreateWindowEx, specifying a class of WC_TREEVIEW, specifying the relevant styles (see TVS_* in MSDN).

You will obviously be returned a window handle which can then be used in the TreeView_* macros - again look in MSDN, there are too many to mention.

Hope this helps!
"Absorb what is useful, reject what is useless, and add what is specifically your own." - Lee Jun Fan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.