Solved

drag and drop in a dialog-based app

Posted on 1997-09-22
3
180 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
  • 2
3 Comments
 

Author Comment

by:shibai
Comment Utility
Edited text of question
0
 
LVL 10

Accepted Solution

by:
RONSLOW earned 50 total points
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

7 Experts available now in Live!

Get 1:1 Help Now