• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 188
  • Last Modified:

drag and drop in a dialog-based app

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
shibai
Asked:
shibai
  • 2
1 Solution
 
shibaiAuthor Commented:
Edited text of question
0
 
RONSLOWCommented:
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
 
shibaiAuthor Commented:
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

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now