home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
uicldd.zip
/
DMSAMP2.HPP
< prev
next >
Wrap
Text File
|
1993-09-02
|
2KB
|
38 lines
#include <idmprov.hpp>
#include <idmitem.hpp>
class ABitmapItem : public IDMItem {
/*******************************************************************************
Objects of this class provide "bitmap control" drop behavior when a
source bitmap file is dropped on a bitmap control properly configured
with a target handler and a ABitmapProvider.
*******************************************************************************/
public:
/*------------------------------- Constructor ----------------------------------
Objects of this class are constructed from a generic item handle.
------------------------------------------------------------------------------*/
ABitmapItem ( const IDMItemHandle &item );
/*------------------------------ Drop Behavior ---------------------------------
dropped - Take the dropped file, create a PM bitmap object,
and set it into the target window.
------------------------------------------------------------------------------*/
virtual Boolean
dropped ( IWindow *target, IDMTargetDropEvent & );
};
class ABitmapProvider : public IDMItemProvider {
/*******************************************************************************
Objects of this class are attached to bitmap controls in order to have
ABitmapItem objects created when a bitmap file is dropped on such a
control.
*******************************************************************************/
public:
/*------------------------------- Target Items ---------------------------------
provideTargetItemFor - Returns an ABitmapItem to replace the argument item.
------------------------------------------------------------------------------*/
virtual IDMItemHandle
provideTargetItemFor ( const IDMItemHandle &item );
};