blog

枪手亨利

博客园 首页 新随笔 联系 订阅 管理

文章分类 -  常用类

1 2 下一页

摘要:取得应用程序所在的路径,然后调用函数,分开驱动器和所在路径 阅读全文
posted @ 2006-07-03 13:09 henry 阅读(212) 评论(0) 推荐(0)

摘要: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... 阅读全文
posted @ 2006-02-06 09:20 henry 阅读(676) 评论(0) 推荐(0)

摘要:对于程序执行期间的错误跟踪!相信大家都有自己的一套办法!!!但都是利用文件文件,我这次利用的是XML&XSL,可产生报表格式的日志,轻松生成报表!!! 我参考了Emilio Guijarro Cameros的CXMLProfile写XML配置文件的思想!!!利用XML 接口IXMLDOMDocument 、IXMLDOMNode 、IXMLDOMElement和 MFC相结合,写成了一个CXM... 阅读全文
posted @ 2006-01-05 09:08 henry 阅读(329) 评论(0) 推荐(0)

摘要:// ShareMem.h: interface for the CShareMem class.//////////////////////////////////////////////////////////////////////// #if !defined(AFX_SHAREMEM_H__DC737B1E_1A7A_427E_8852_A7E98F696F05__INCL... 阅读全文
posted @ 2006-01-05 08:35 henry 阅读(280) 评论(0) 推荐(0)

摘要: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... 阅读全文
posted @ 2005-12-29 17:02 henry 阅读(594) 评论(0) 推荐(0)

摘要: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... 阅读全文
posted @ 2005-12-29 16:58 henry 阅读(1859) 评论(0) 推荐(0)

摘要: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... 阅读全文
posted @ 2005-12-29 16:55 henry 阅读(315) 评论(0) 推荐(0)

摘要: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... 阅读全文
posted @ 2005-12-29 16:48 henry 阅读(1186) 评论(0) 推荐(0)

摘要: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... 阅读全文
posted @ 2005-12-29 16:44 henry 阅读(368) 评论(0) 推荐(0)

摘要: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 ... 阅读全文
posted @ 2005-12-29 16:42 henry 阅读(767) 评论(0) 推荐(0)

摘要: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... 阅读全文
posted @ 2005-12-29 15:42 henry 阅读(1993) 评论(0) 推荐(0)

摘要: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... 阅读全文
posted @ 2005-12-29 15:38 henry 阅读(372) 评论(0) 推荐(0)

摘要:如何在CRichEditCtrl控件中直接读如RTF格式的文件 Inserting an RTF string using StreamIn -------------------------------------------------------------------------------- When inserting Rich Text Formatted tex... 阅读全文
posted @ 2005-12-29 15:28 henry 阅读(2206) 评论(1) 推荐(0)

摘要:当RichEdit控件中的内容(字符串)改变时响应哪个消息? 我重载了EN_CHANGE这个消息当内容改变时都没有反应!!!但是在Edit控件中就可以!何解?// Set the event mask so that the parent gets notified when the text// of the rich edit control changes. pmyRichEditCtrl-... 阅读全文
posted @ 2005-12-29 15:25 henry 阅读(2322) 评论(0) 推荐(0)

摘要:通过程序向RichEditView写文本作者:陈新之 下载本文示例代码 在建立SDI或MDI程序时,如果选择了RichEditView,就可以利用RichEdit提供的丰富的格式,但是如何通过程序在RichEditView中写入文本却是一个问题,下文就介绍了如何实现用程序在RichEditView中写文本. 一、在文本末尾写文字void CRichEditUseDoc::OnTextWritea... 阅读全文
posted @ 2005-12-29 14:39 henry 阅读(432) 评论(0) 推荐(0)

摘要:在richtextbox中,如何得到鼠标所在的段、行、句、词的内容?http://search.csdn.net/Expert/topic/1132/1132440.xml?temp=.7275049发送EM_CHARFROMPOS消息得到鼠标所指位置发送EM_EXLINEFROMCHAR(因为是RichTextBox)取得行号发送EM_LINELENGTH消息得到行长度,分配字符串缓冲区的大小发... 阅读全文
posted @ 2005-12-29 14:31 henry 阅读(1769) 评论(0) 推荐(0)

摘要:Rich Edit 控件中的字符格式 可以使用 Rich Edit 控件 (CRichEditCtrl) 的成员函数格式化字符并检索格式信息。对于字符,可以指定字体、大小、颜色和粗体、斜体、受保护等效果。 可以通过使用 SetSelectionCharFormat 和 SetWordCharFormat 成员函数应用字符格式。若要确定选定文本的当前字符格式,请使用 GetSelection... 阅读全文
posted @ 2005-12-29 13:19 henry 阅读(441) 评论(0) 推荐(0)

摘要:msnd上的Rich Edit http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/RichEdit/RichEditControls.asp下面是codeguru上的例程1 Environment: Visual C++ 6, richedit controls... 阅读全文
posted @ 2005-12-29 11:20 henry 阅读(725) 评论(0) 推荐(0)

摘要:好多编程文章 中文http://www.vccode.com http://www.vckbase.com http://soft.yesky.com/SoftChannel/72342371928375296/index.shtml http://www.csdn.net/develop/ http://www.comprg.com.cn/titl_jpwz1.htm http://www.... 阅读全文
posted @ 2005-12-22 14:25 henry 阅读(909) 评论(0) 推荐(0)

摘要:void PrintTest() { CPrintDialog dlg(FALSE, PD_ALLPAGES | PD_COLLATE | PD_NOPAGENUMS | PD_HIDEPRINTTOFILE); if(dlg.GetDefaults()) { DEVMODE F... 阅读全文
posted @ 2005-12-22 14:21 henry 阅读(455) 评论(0) 推荐(0)

1 2 下一页