?
Solved

A ComboBox of Type DropDownCombo Having Drag and Drop Facility

Posted on 2003-11-05
4
Medium Priority
?
334 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 520 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
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…
Suggested Courses

800 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