Solved

Treeview control & multiple selection

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 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

19 Experts available now in Live!

Get 1:1 Help Now