Solved

drag and drop in a dialog-based app

Posted on 1997-09-22
3
183 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
List out all word 7 318
notReplace  challenge 53 142
wordmultiple challenge 12 142
Bartender label printing - switch on and off graphics 3 54
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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 a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

830 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