Solved

A ComboBox of Type DropDownCombo Having Drag and Drop Facility

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

762 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