随笔 - 547  文章 - 213 评论 - 417 阅读 - 107万

随笔分类 -  MFC

上一页 1 2
CHtmlEditCtrl (2): Add a Source Text Editor to Your HTML Editor
摘要:In a previous article, I described how to create an HTML editor using the MFC CHtmlEditCtrl class in a dialog box. It could be used for creating "rich 阅读全文
posted @ 2017-12-16 19:01 今夜太冷 阅读(626) 评论(0) 推荐(0) 编辑
CHtmlEditCtrl(1) : Use CHtmlEditCtrl to Create a Simple HTML Editor
摘要:I needed a lightweight HTML editor to generate "rich text" emails, so I decided to explore the features and capabilities of the MFC CHtmlEditCtrl cont 阅读全文
posted @ 2017-12-16 16:57 今夜太冷 阅读(518) 评论(0) 推荐(0) 编辑
CreateFont函数为什么改变不了字体?该怎么解决
摘要:CreateFont函数为什么改变不了字体?CFont * f; f = new CFont; f-> CreateFont(30, // nHeight 0, // nWidth 0, // nEscapement 0, // ... 阅读全文
posted @ 2017-10-28 20:26 今夜太冷 阅读(1317) 评论(0) 推荐(0) 编辑
MFC中调用web api
摘要:使用COM组件来调用,需要catch com error. IXMLHTTPRequestPtr pIXMLHTTPRequest = NULL; BSTR bstrString = NULL; HRESULT hr; try { hr=pIXMLHTTPRequest.CreateInstance("Msxml2.XMLHTTP.6.0"); ... 阅读全文
posted @ 2017-05-23 10:29 今夜太冷 阅读(1889) 评论(0) 推荐(0) 编辑
MFC获得当前用户等信息
摘要:MFC获得当前用户等信息 #ifndef UNICODE #define UNICODE #endif #pragma comment(lib, "netapi32.lib") #include <stdio.h> #include <windows.h> #include <lm.h> int w 阅读全文
posted @ 2017-02-04 09:45 今夜太冷 阅读(268) 评论(0) 推荐(0) 编辑
MFC对话框中使用CHtmlEditCtrl
摘要:MFC对话框中使用CHtmlEditCtrl 感谢原帖作者: http://blog.csdn.net/tingya/article/details/2028172 我在VS2008校正了一些代码。 最近由于项目需要,需要在对话框中使用CHtmlEditCtrl控件,网上大部分的代码都是直接使用CHtmlEditView的,很少有CHtmlEditCtrl在对话框中使用的示例。网上有一个《动... 阅读全文
posted @ 2016-10-21 23:14 今夜太冷 阅读(773) 评论(0) 推荐(0) 编辑
MFC的BeginWaitCursor和EndWaitCursor函数
摘要:MFC提供了BeginWaitCursor和EndWaitCursor函数来显示和隐藏等待的图标,以下是例子。 void CMainView::OnEditClone() { BeginWaitCursor(); //Other logic. EndWaitCursor(); } 阅读全文
posted @ 2016-08-17 17:08 今夜太冷 阅读(1355) 评论(0) 推荐(0) 编辑
MFC CFileDialog用法例子。
摘要:Set it toTRUEto construct aFile Opendialog box. Set it toFALSEto construct aFile Save Asdialog box. void CCompFileDlg::OnDirbrowser() { // TODO: Add your control notification handler cod... 阅读全文
posted @ 2016-08-12 13:34 今夜太冷 阅读(2241) 评论(0) 推荐(0) 编辑
loadicon后一定要调用destroyicon吗
摘要:RemarksItisonlynecessarytocallDestroyIconforiconsandcursorscreatedwiththefollowingfunctions:CreateIconFromResourceEx(ifcalledwithouttheLR_SHAREDflag),... 阅读全文
posted @ 2015-03-24 19:17 今夜太冷 阅读(576) 评论(0) 推荐(0) 编辑
如何判断CapsLock键是否按下
摘要:SHORT cap_state = ::GetKeyState(VK_CAPITAL); char str[10]; sprintf(str, "%d", cap_state); AfxMessageBox( CString(str) , MB_OK ); 会弹出0或者1 阅读全文
posted @ 2015-03-18 21:19 今夜太冷 阅读(312) 评论(0) 推荐(0) 编辑
ToDoList
摘要:// ToDoListWnd.cpp : implementation file//#include "stdafx.h"#include "ToDoList.h"#include "ToDoListWnd.h"#include "ToolsCmdlineParser.h"#include "Too... 阅读全文
posted @ 2014-11-18 07:25 今夜太冷 阅读(1844) 评论(0) 推荐(0) 编辑
有关String的转换的一篇好文章
摘要:Pay Close Attention - String Handling I need to make a detour for a few moments, and discuss how to handle strings in COM code. If you are familiar with how Unicode and ANSI strings work, and know h... 阅读全文
posted @ 2014-09-11 18:17 今夜太冷 阅读(356) 评论(0) 推荐(0) 编辑

上一页 1 2
点击右上角即可分享
微信分享提示