-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Mtiwari
Message 1 in Discussion

Drag and Drop has been implemented for subclasses of CEdit and CRichEditCtrl. Mouse 
position is incorrect in case of CRichEditCtrl, when Drag source and drop target is 
rich edit control or CEdit control on same form. In view class derived from CFormView 
the implementation is like following:
1. "OnDragEnter" invokes "OnDragOver" where "OnDragEnter" is invoked by Windows.
2. In handler "OnDragOver" the criteria to find out the drop target is 

a) When control is not read only and
b) when control type is either rich edit (multiline) or edit (single line) and
c) when Mouse position passed to "OnDragEnter" is in the reactangle of the control on 
the form
then drop effect is "DROPEFFECT_COPY" else drop effect is "DROPEFFECT_NONE". As a 
result "OnDrop" is not being invoked which is critical to enforce some program logic 
e.g. enforcing max text limit for the control as well as replacing the current 
selected text with the one in Clipboard.
In COleDropTarget  screen position of mouse is converted relative to client. There the 
problem is. 

Is this really an issue? How to overcome this? Please let me know if someone needs 
more input from me.
Please provide your input.

Settings:
Default Locale: Chinese Traditional
Machine Manufacturer: Hewlett Packard
O/S: WIndows 2000 Advanced Server English.
RAM : 512
Free DIsk Space: 20 GB.
Texts dragged are multibyte characters.

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to