Click here to Skip to main content
15,607,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to have a image below a cursor when I drag and drop icons from a wxListctrl to a wxPanel.

But when I try doing it i am not getting the image.
Please help me out.
Thank you.
wxImageList* n1=ListCtrl1->GetImageList(wxIMAGE_LIST_SMALL);
wxBitmapDataObject btmpdataobj(n1->GetBitmap(event.GetImage()));
wxDropSource dragSource(btmpdataobj,this,wxDROP_ICON(dnd_copy));
wxDragResult result = dragSource.DoDragDrop(wxDrag_DefaultMove);

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900