摘要:VividTree - A Colorful and Picturesque Owner Drawn CTreeCtrl Classhttp://www.codeproject.com/treectrl/VividTree.asp Download demo project - 36.2 Kb Download source - 6.7 Kb Introduction This own...
        阅读全文
        文章分类 - 界面相关
摘要:控件“树”中多选拖放功能的实现 http://www.microsoft.com/china/msdn/library/langtool/vcpp/0214a.mspx发布日期: 2/14/2002 | 更新日期: 6/30/2004 控件”树”(tree)能够清晰地显示所包含数据的继承关系,是一个强有力的控件。但是真正掌握并能运用CTreeCtrl类的众多特性并不是一件容易的事情。在Visu...
        阅读全文
        
摘要:制作自定义窗口类 存在的问题: 制作的窗口不能移动 如果要改进,可以参见“无标题窗口的移动” ////////////////////////////////////////////////////////////在...App的 InitInstance() 中添加以下内容 BOOL ...App::InitInstance(){ // TODO: 在此执行任意逐线程初始化 GdiplusSta...
        阅读全文
        
摘要:程序不在桌面任务样中显示小图标 ////////////////////////////////////////////////////////////文档、视结构程序 在 MainFrame 类中添加成员变量 CWnd m_wndOwner; 在 PreCreateWindow() 中添加代码...BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& ...
        阅读全文
        
摘要://可扩展和收缩的对话框 ////////////////////////////////////////////////////////////// 知识点1://// 得到第一个子控件// CWnd *pWndCtrl = this->GetWindow( GW_CHILD );// 得到下一个子控件// pWndCtrl = pWndCtrl->GetWindow( GW_HWNDNEXT ...
        阅读全文
        
摘要:关于RICHEDIT的两个问题 问题1: RichEditCtrl在用DDX进行数据交换的时候会发生数据丢失问题?为什么! 当我们在拖了一个控件到程序里后,通常的做发是Ctrl+W,用类向导给控件关联一个变量,然后依靠DDX/DDV进行数据交换,如果我们用同样的方法来给RICHEDIT关联一个CString类型的变量就会存在一个问题,就是如果我们的数据大于了64K,数据...
        阅读全文
        
摘要:修改窗口类名 在DOC/VIEW结构的应用程序中,要修改主窗口(CMainFrame)的类名,可以利用超类化技术。关于超类化还可以参考浅谈MFC中超类化技术的实现。但是超类化技术对基于对话框基础的应用程序是没有效果。如何修改呢?先看看用超类化改DOC/VIEW结构形式。超类化技术一般有如下几个步骤: 1. 通过调用 GetClassInfoEx 来获得想要进行超...
        阅读全文
        
摘要:Inserting a bitmap file into a CRichEditCtrlRating: none Mike Lytle (view profile)June 23, 1999 Here is a way to put a bitmap file into an RTF control. It will insert the file, pWorkSpace->GetWk...
        阅读全文
        
摘要:RichEditCtrl Syntax Highlightinghttp://www.codeguru.com/cpp/controls/richedit/article.php/c2419/Rating: none Marc Britten (view profile)July 28, 1999 I wrote this class when I wanted to add synt...
        阅读全文
        
摘要:Environment: VC5, NT4 SP3 CRichEditCtrlEx is derived from CRichEditCtrl and contains two methods for create the control. The background of a rich control could be changed using SetBackgroundCo...
        阅读全文
        
摘要:RichEdit Overlay (non-MFC) http://www.codeguru.com/cpp/controls/richedit/article.php/c2391/ The image shows the graphical output of the enclosed test application. This snippet demonstrates how to ma...
        阅读全文
        
摘要:Painless streaming of long rich text from/to CRichEditView Environment: VC6 Introduction There are a number of articles on the Internet as well as on CodeGuru offering advice on streaming the con...
        阅读全文
        
摘要:http://www.codeguru.com/cpp/controls/richedit/article.php/c5383/ Environment: VC6 SP5, Win2000 SP2 There are a lot of articles in Codeguru or MSDN that discuss how to insert a bitmap file inside ...
        阅读全文
        
摘要:http://www.codeguru.com/cpp/controls/richedit/article.php/c2401/If you do not want to allow any editing in the control you can call the function SetReadOnly(). This will disable all editing in the con...
        阅读全文
        
摘要:Environment: VC6 SP4, 2000. Follow these 10 easy steps to build the OutLookRichEdit control: Insert a rich edit control into the dialog. Call AfxInitRichEdit() in the InitInstance of the App cl...
        阅读全文
        
摘要:如何在CRichEditCtrl控件中直接读如RTF格式的文件 Inserting an RTF string using StreamIn -------------------------------------------------------------------------------- When inserting Rich Text Formatted tex...
        阅读全文
        
摘要:当RichEdit控件中的内容(字符串)改变时响应哪个消息? 我重载了EN_CHANGE这个消息当内容改变时都没有反应!!!但是在Edit控件中就可以!何解?// Set the event mask so that the parent gets notified when the text// of the rich edit control changes. pmyRichEditCtrl-...
        阅读全文
        
摘要:通过程序向RichEditView写文本作者:陈新之 下载本文示例代码 在建立SDI或MDI程序时,如果选择了RichEditView,就可以利用RichEdit提供的丰富的格式,但是如何通过程序在RichEditView中写入文本却是一个问题,下文就介绍了如何实现用程序在RichEditView中写文本. 一、在文本末尾写文字void CRichEditUseDoc::OnTextWritea...
        阅读全文
        
摘要:在richtextbox中,如何得到鼠标所在的段、行、句、词的内容?http://search.csdn.net/Expert/topic/1132/1132440.xml?temp=.7275049发送EM_CHARFROMPOS消息得到鼠标所指位置发送EM_EXLINEFROMCHAR(因为是RichTextBox)取得行号发送EM_LINELENGTH消息得到行长度,分配字符串缓冲区的大小发...
        阅读全文
        
摘要:Rich Edit 控件中的字符格式 可以使用 Rich Edit 控件 (CRichEditCtrl) 的成员函数格式化字符并检索格式信息。对于字符,可以指定字体、大小、颜色和粗体、斜体、受保护等效果。 可以通过使用 SetSelectionCharFormat 和 SetWordCharFormat 成员函数应用字符格式。若要确定选定文本的当前字符格式,请使用 GetSelection...
        阅读全文
        
 
                
 
 浙公网安备 33010602011771号
浙公网安备 33010602011771号