⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 drag_edit.shtml

📁 mfc资源大全包含MFC编程各个方面的源码
💻 SHTML
字号:
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="Author" CONTENT="Zafir Anjum">
   <TITLE>Controls - Drag text between edit controls</TITLE>
</HEAD>
<body background="../fancyhome/back.gif" bgcolor="#FFFFFF" link="#B50029" vlink="#8E2323" alink="#FF0000">
<table WIDTH="100%">
<tr WIDTH="100%">
<td align=center><!--#exec cgi="/cgi/ads.cgi"--><td>
</tr>
</table>


<CENTER><H3><FONT COLOR="#AOAO99">Drag text between edit controls</FONT></H3></CENTER>
<HR>




This article was contributed by <A HREF="mailto:ysl@springsoft.com.tw">Sam Lu</A>.



<P>Recently, I completed a CDragEdit class. With this class,
user can copy/move string between edit controls or other editors
just by drag-and-drop.

<P>The <A HREF="drag_edit_src.zip">drag_edit_src.zip</A>
is the source code of CDragEdit and the <A HREF="drag_edit_test.zip">drag_edit_test.zip</A> is the test 
program, including its source code also, of CDragEdit. Both of zip files 
have one README.TXT. In this file, I have described how to use it and
how it works. For your convenience, I also listed the content of 
README.TXT at the bottom of this mail.

<P>In the past time, if you want to copy/move string from one edit control
to another edit control or copy/move string from one edit window of 
foreign application to a edit control, only you can do is copy, cut, 
and paste via clipboard. For such a inconvenience, I implemented a 
CDragEdit control which is based on the standard CEdit control so that 
you can override the existent application's edit control as a drag-drop 
enabled control very easily. Besides that the CDragEdit's drag-drop 
capability is implemented via OLE's UDT (Uniform Data Transfer) so you 
can use its drag-drop to share data with most applications. e.g. 
Visual C++, WordPad, Word, ...,etc.

<P>If you have any question about the CDragEdit, don't hesitate to e-mail to
me.

<PRE><TT>
* Class hierarchy of CDragEdit

CObject
|
+-CCmdTarget

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -