Solved

A ComboBox of Type DropDownCombo Having Drag and Drop Facility

Posted on 2003-11-05
4
327 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to determine file rename from EventLog ? 2 58
conditional code and condition difference 9 85
centeredAverage challenge 8 186
Annoying "thing" blocks my view 4 132
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 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