Solved

drag and drop in a dialog-based app

Posted on 1997-09-22
3
185 Views
Last Modified: 2013-11-19
Is it possible to have drag and drop operations between two list controls in a dialog-based application (no documents and views)? If yes, what are the major steps? Thanks!
0
Comment
Question by:shibai
[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
3 Comments
 

Author Comment

by:shibai
ID: 1306749
Edited text of question
0
 
LVL 10

Accepted Solution

by:
RONSLOW earned 50 total points
ID: 1306750
Yes - CDragListBox class supports drag and drop operations within a single list box.  You can override the "Dropped" function to get drag and drop BETWEEN list boxes (you detect the destination window and copy the data from one list to the other as approriate).

This is independant of whether it is a dialog or form or anything else.

0
 

Author Comment

by:shibai
ID: 1306751
Thanks, Ronslow!
Then how could I make the variable type of the list boxes CDragListBox? ClassWizard provides only one type, CListBox.

--shibai
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

615 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