Bitmap drag

Hi ,

I have attached the demoproject I am currently working on. I want to drag the bitmap when I click on the bitmap and move my mouse.
I have handled OnLButtonDown, OnMouseMove and OnLbuttonup messages.
Additionally I have created a list containrr to hold the CBitmap pointers( the problem started after I introduced these).

After all these I can't drag the bitmap. If u get enough time please run my code and let me know the problem areas .

Regards,
Guru
[501 byte] By [justlikedat] at [2007-11-20 9:23:29]
# 1 Re: Bitmap drag
Additionally I have created a list containrr to hold the CBitmap pointers( the problem started after I introduced these). So, if the drag worked before, back out your most recent changes. This should point you in the direction of the problem.
Mike Harnad at 2007-11-11 4:12:01 >
# 2 Re: Bitmap drag
It was working fine for a single bitmap. When I tried to display multiple bitmaps I had to go for list container. If I back out my most recent changes I will end up having a single bitmap displayed.
justlikedat at 2007-11-11 4:13:01 >
# 3 Re: Bitmap drag
You might want to take a look at using an image list. It has built in drag and drop capabilities.
Mike Harnad at 2007-11-11 4:14:04 >
# 4 Re: Bitmap drag
I tried using CImageList . I used the drag and drop functions, BeginDrag , DragMove and EndDrag .. but unable to get the drag effect ..
justlikedat at 2007-11-11 4:15:07 >
# 5 Re: Bitmap drag
In the past, I have found this ( http://support.microsoft.com/kb/135299) MSDN article helpful in writing drag n' drop apps.
Mike Harnad at 2007-11-11 4:16:07 >