Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Treeview control & multiple selection

Posted on 1997-12-31
2
Medium Priority
?
364 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
[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
2 Comments
 
LVL 1

Accepted Solution

by:
GregL earned 240 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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 video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

618 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