Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Drag and drop issue
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Drag and drop issue

 Post Reply Post Reply
Author
Message
ericchubb View Drop Down
Groupie
Groupie


Joined: 31 May 2010
Location: Ireland
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote ericchubb Quote  Post ReplyReply Direct Link To This Post Topic: Drag and drop issue
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.