Solved

Treeview control & multiple selection

Posted on 1997-12-31
2
352 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 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