C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 30th, 2003, 05:07 AM
rohitdivas rohitdivas is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Delhi
Posts: 1 rohitdivas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to rohitdivas
Talking VC++ MFC Challenge TREE CONTROL WITH Checkboxes

Dear All,

I am developing an application in which I require a "tree control with checkboxes".
The structure of tree control is as:

Main_Root
Child_1
Child_2
Child_3
Child_4
Child_5
Child_6

ie. simple tree having one main root and having many child items.

I have two problems related to it.

1)
All child items should be checked to TRUE whenever we click 'root' checkbox and vice-versa. How to proceed for it ???????

I mean to say that which event should I capture for this.( ie. TVN_SELCHANGING )
Please send some code for this if possible.

2)
Is there any way to disable a particular check-box in tree control.

Thanks in advance.

Reply With Quote
  #2  
Old May 30th, 2003, 06:53 AM
dcaillouet's Avatar
dcaillouet dcaillouet is offline
Big Endian
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2001
Location: Fly-over country
Posts: 1,172 dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 16 h 29 m 5 sec
Reputation Power: 29
www.codeproject.com is always a good place to find MFC examples. The following article isn't the best one I've seen, but it might answer some of your questions:

http://www.codeproject.com/useritems/vtree.asp

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > VC++ MFC Challenge TREE CONTROL WITH Checkboxes

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap