Enabling drag and drop
This step demonstrates how to add support for drag and drop using the Drag and Drop framework. This framework provides support that allows users to drag an item from one context and drop it into another context that knows what to do with it. You'll learn how to:
- Mix in MDropAcceptor to the TTilesView class
- Override the MDropAcceptor functions ChoosePreferredType and AcceptDrop to accept color items dropped onto a TTilesView
- Implement the TTilesView MouseDown function so that it can start a drag and drop interaction
- Dropping a color item onto a tile
-
- How drag and drop items are transported
-
- Creating a drop acceptor
-
- Creating a drag source
-
- Code walkthrough
-
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker