[interfacekit] Re: small problem...

On Sat, 26 Oct 2002 12:04:14 +0300 "Adi Oanca" <adioanca@xxxxxxxxxxxxx>
 wrote:
> Because I don't feel like searching... I'll ask you guys:
> 
> void DragMessage(BMessage *message, BBitmap *image, BPoint point,
>       BHandler *replyTarget = NULL)
> 
> "image", is a bitmap that the user can drag. The bitmap is 
> automatically
> freed when the message is dropped.
> 
> How?

delete?! ;-)

Well, the BeBook is bit unprecise here. The supplied bitmap object is 
already deleted in DragMessage(). I don't know, how D&D is planned to 
be implemented, but I suspect, the the data (drag message, bitmap,...) 
are handed over to the app server, which manages the D&D process 
(sending messages to the concerned windows). Maybe the bitmap data are 
cloned, or maybe they are somehow detached from the bitmap to avoid 
copying...

CU, Ingo


Other related posts: