Solved

A ComboBox of Type DropDownCombo Having Drag and Drop Facility

Posted on 2003-11-05
4
332 Views
Last Modified: 2013-11-20
Can I have  a ComboBox in VC++ with Drag and Drop Facility of its elements and having type DropDown Combo not Simple?
if it is developed as an Activex Component Where can i Find it and how do i implement it in my Project.
Suhas
0
Comment
Question by:SuhasBS
[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
4 Comments
 
LVL 49

Accepted Solution

by:
DanRollins earned 130 total points
ID: 9693143
If you need to drop files, just

1) Add a regular (dropdown) combo box to your dialog box.  In the properties box, clcik the "Extended Styles" tab and put a checkmnark in the "Accept files" checkbox.

2) Use the ClassWizard to derive a new class, say CMyComboBox from the standard CComboBox control.  

3) To that class, add a handler for WM_DROPFILES.  Make it so:

void CMyComboBox::OnDropFiles(HDROP hDropInfo)
{
      MessageBox("A file was dropped!");
      CComboBox::OnDropFiles(hDropInfo);
}

4) Use the ClassWizard to create a control-type variable for the combobox.  You can select the new class (CMyComboBox) from the list!

=-=-=-=-=-=-=-=-=-=-=-=-=
If you can make it that far, I'll tell you all about handling the HDROP parameter so you can figure out what was dropped.

-- Dan
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

691 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