Solved

adding a combo box to a tree control

Posted on 2001-06-13
5
420 Views
Last Modified: 2008-02-26
I have an existing tree control that is located on a property page.  How can I add combo boxes to some of its nodes?

I do not understand how to adapt any of the features from the MFC Grid Control sample to my tree control.  

I must be missing something.

Thank you for taking the time to respond to my question.

0
Comment
Question by:laurio
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 

Accepted Solution

by:
SusanneJost earned 300 total points
ID: 6188373
Hi Laurio,

Check out
http://www.codeproject.com/miscctrl/gridctrl_combo.asp

for an example of a grid control embedding a tree control, combo and check boxes etc. Example: "Using comboboxes in the MFC Grid Control"
By Chris Maunder

also check out
http://www.codeproject.com/miscctrl/gridtreectrl.asp 

The example is called  "Tree control and Buttons for MFC Grid control" written by
By Ken Bertelson

These examples will show you how to dynamically draw your combo box inside the tree control. Full source code and sample code is included.

One of the sample grid controls is even written in ATL, see http://www.codeproject.com/library/gridprojects.asp, this one is truly amazing

Sue




0
 

Expert Comment

by:zouying
ID: 6194775
You can create the combo box manully. If you can't put that control in, creating by calling initialzing a class is the only way.

Z/
0
 

Expert Comment

by:zouying
ID: 6194777
You can create the combo box manully. If you can't put that control in, creating by calling initialzing a class is the only way.

Z/
0
 
LVL 11

Expert Comment

by:griessh
ID: 6817317
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. Unless there is objection or further activity,  I will suggest to accept "SusanneJost" comment(s) as an answer.

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points.
The link to the Community Support area is: http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 5

Expert Comment

by:Netminder
ID: 6833250
Per recommendation comment force/accepted by

Netminder
Community Support Moderator
Experts Exchange
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question