Wrox Programmer Forums
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 27th, 2007, 05:00 AM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Default Using MFC CTree Control

I have been working with the Visual C++ MFC CTree control . It seemed at first that I was only able to add the root to the structure.

Well, it turns out I was coding the CTree control correctly. Sort of. The control displays the root of the tree and the user has to click on it to show the nodes underneath.

So the question now is this. How do I code the CTree control so that it comes up initially with all the nodes showing?

What I suspect I need to do is to set the focus on the node I add as I add it. How is this done?







Similar Threads
Thread Thread Starter Forum Replies Last Post
What happened to Professional MFC lesliecarr206 C++ Programming 1 March 30th, 2007 01:02 PM
Problems with MFC mamutgargoyle Visual C++ 2005 1 February 13th, 2006 11:15 AM
MFC-hELP pazzuzu Visual C++ 0 June 28th, 2005 10:49 AM
COM Using MFC vxp4799 Visual C++ 0 May 12th, 2005 08:16 AM
use MFC in WIN32API i_anubhav Visual C++ 1 June 20th, 2003 02:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.