Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - How to drag n drop in a report control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to drag n drop in a report control

 Post Reply Post Reply
Author
Message
apautrot View Drop Down
Groupie
Groupie
Avatar

Joined: 16 April 2009
Location: France
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote apautrot Quote  Post ReplyReply Direct Link To This Post Topic: How to drag n drop in a report control
    Posted: 05 January 2012 at 5:37am
I was trying to do a simple drag n drop in a report control, but I had to reverse engineer the report control code to understand what's done, how to work with it, discover notifications messages, structures and their use. 

An example :
- There is no mention of XTP_NM_REPORT_DRAGOVER aside the XTP_NM_REPORT_BEGINDRAG, XTP_NM_REPORT_DROP or XTP_NM_REPORT_HASVALIDDROPTYPE. 
- XTP_NM_REPORT_HASVALIDDROPTYPE is commented as to be "Indicates the user dropped records to report control." This is false, this is not what is it.
- The #define DROPEFFECT_CANCEL   (5) in file XTPCustomizeTools.h f**k up the value that should be set in XTP_NM_REPORTDRAGDROP in XTP_NM_REPORT_DRAGOVER notification to forbid the drop. We have to return 0 instead of using the define DROPEFFECT_CANCEL which is so badly redefined.

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.109 seconds.