Solved

Treeview control & multiple selection

Posted on 1997-12-31
2
350 Views
Last Modified: 2013-12-03
hello,

i've made a program that uses a treeview control to view some data and do some drag&drop with it.

but now i want to allow a user to make a multiple selection, and then do something with the selection.. BUT
i don't know how.. not a single example i have do this.
they all use a single selection. I can't even get the treeview to ALLOW a multiple selection.. ie shift-click doesn't select mote than one.

can someone help me with my problem? would be great!

note:
OS: NT4
COMPILER: MSVC++
LANG: C++
STUFF: NO MFC, NO OWL
0
Comment
Question by:TheMadManiac
2 Comments
 
LVL 1

Accepted Solution

by:
GregL earned 60 total points
ID: 1409735
Here is the only answer I could find.  The Class Viewer in MSVC 5 does have a multiselection treeview, but it doesn't use the SysTreeView32 control.

Microsoft Knowledge Base

SAMPLE: How to Simulate Multiple-Selection TreeView Control

Last reviewed: February 15, 1996
Article ID: Q125587  

The information in this article applies to:
Microsoft Win32 Application Programming Interface (API) included with:


    - Microsoft Windows NT version 3.51
    - Microsoft Windows 95 version 4.0



SUMMARY
The TVWSTATE sample demonstrates how to simulate a multiple-selection TreeView control. The Windows 95 TreeView control does not support multiple selection. If you want a multiple-selection TreeView, you can use state images to simulate it in your application.

The TVWSTATE sample accomplishes this by using a checkbox type of state image to indicate that the item is selected or cleared (de-selected). These checkboxes will retain their state even if the TreeView loses focus.

Download TVWSTATE.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:

Microsoft Download Service (MSDL)

      Dial (206) 936-6735 to connect to MSDL
      Download TVWSTATE.EXE (size: 49318 bytes)
Internet (anonymous FTP)

      ftp ftp.microsoft.com
      Change to the SOFTLIB\MSLFILES directory
      Get TVWSTATE.EXE (size: 49318 bytes)
 

0
 
LVL 1

Author Comment

by:TheMadManiac
ID: 1409736
I thank thee,

i got it working and stuff.. the TVWSTATE.EXE also had some other nice thingies, like naming conventions etc.

Florizzzz / The Mad Maniac
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now