Drag and drop issue |
Post Reply |
Author | |
ericchubb
Groupie Joined: 31 May 2010 Location: Ireland Status: Offline Points: 15 |
Post Options
Thanks(0)
Posted: 21 April 2020 at 12:39pm |
Hi there I have a report control placed inside a dialog. I would like to be able to drag an arbitrary file from Windows explorer into the control, and let the drop handling code decide if the filename can be added to the report control. I've called "EnableDragDrop(_T("TestDragDrop"), xtpReportAllowDrop) on the report control from within the parent dialog, and I've mapped XTP_NM_REPORT_DROP to a function within the parent dialog. "TestDragDrop" hasn't been registered as a CLIPFORMAT in my app's InitInstance, but in the ReportSample it isn't either. However, when I try and drag a file to the control, the mouse pointer just becomes a circle with a line through it, indicating dropping files into the control isn't allowed. If someone could help me with what I might be doing wrong I'd appreciate it.
|
|
Eric
Product: Xtreme Toolkit Version 22.0 Platform: Windows 11 (64bit) - Language: Visual C++ 2022 /C# .NET 2/3.5/4/5/6/7 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |