
Duilib
嘻嘻宝贝
覃奋伴你返学海,伟业始于此举中。
展开
-
LNK1104: cannot open file 'XXX.map'
Question : Hi,everone: I am trying to compile a c++ project with vs2010 and the LINK : fatal error LNK1104: cannot open file 'E:\...\XXX.map' shows up. and it's successful when i compile i转载 2012-04-05 21:23:47 · 2126 阅读 · 0 评论 -
Unicode与UTF-8转换
/* *Unicode转换成UTF-8 *@param strUnicode: 待转换的CString *@param szUtf8:转换后的UTF-8 *@return:返回UTF-8格式的长度 */ int UniToUTF8( wchar_t* pUniString, char *szUtf8 ) { int nLen = WideCharToMultiByte(CP_UT原创 2014-08-27 09:36:48 · 3819 阅读 · 0 评论 -
rapidxml读取包含中文路径的xml解析错误的解决方法
#ifdef _UNICODEsetlocale(LC_ALL, "Chinese-simplified");// 设置中文环境USES_CONVERSION;filesetlocale(LC_ALL, "C");// 还原#elsefile#endifxml_documentXmlAnalyse.parse(doc.data());原创 2014-08-27 09:30:26 · 2941 阅读 · 0 评论 -
NSIS-DLL安装技巧
B.1 IntroductionThe Library header file can be used to setup dynamic link libraries (DLL) and type libraries (TLB). If necessary, the following actions will be performed:File copyingFile copyi转载 2014-09-05 16:07:01 · 2391 阅读 · 0 评论 -
如何在vs2005查看内存视图?
进入调试模式,在视图(view)选项选择其他窗口(other window),打开命令窗口(command window),输入memory,即可查看。原创 2012-11-19 11:29:58 · 943 阅读 · 0 评论 -
PostMessage传参问题
MSDN:BOOL PostMessage( HWND hWnd, // handle to destination window UINT Msg, // message WPARAM wParam, // first message parameter LPARAM lParam // second message parameter);如原创 2012-08-23 11:42:03 · 5217 阅读 · 0 评论 -
CString、TCHAR*、char*转换
注:转载自http://www.cnblogs.com/xchangli/archive/2012/04/13/2445750.htmlCString->LPTSTR的转化可以用函数GetBuff() CString StrInfo="C:\\Windows"; LPTSTR StrTest=StrInfo.GetBuffer(20); strcpy(StrTest,"NewStr转载 2012-09-14 20:46:17 · 426 阅读 · 0 评论 -
怎样把编辑框中的光标移动到编辑框中字符的最后面?
有两种方法:1. 通过窗口的句柄发送End消息。if (m_pAcountEdit->IsFocused()){HWND hwnd = ::GetFocus();::SendMessage(hwnd, WM_KEYDOWN, VK_END, 0);}2. 通过SetSel函数。if (m_pPassWordEdit->IsFocused()){int lengt原创 2012-09-13 23:16:09 · 3977 阅读 · 0 评论 -
Duilib下编辑框限定字符字数问题
在Duilib下限定字符个数,可以通过配置文件中加入maxchar来设置或者在代码里调用SetMaxChar(UINT uMax)函数来进行限定,但是当你调试的时候,发现自己设定的与自己输入的不一致,按常理说maxchar="10",那就是5个中文10个英文,但是在Edit里面却能输入10个中文10个英文,为什么会出现这样的现象呢?原因就是我们没有添加一段代码。#pragma comment(原创 2012-08-01 17:37:40 · 3205 阅读 · 0 评论 -
STL list删除元素出错
std::list::iterator it = deptList.begin();for (; it != deptList.end();){CString strName = it->szName;OutputDebugString("\n********************关系列表*************************\n");OutputDebugString(strNam原创 2012-08-13 15:59:29 · 407 阅读 · 0 评论 -
duilib之源码分析
《duilib之源码分析》1 stdAfx.h* lengthof(x) 计算数组长度宏* MAX 两值最大* MIN 两值最小* CLAMP(x,a,b) x在a,b之间则取x否则取最小2 UIBase* UI_WNDSTYLE_ 窗口风格属性* UI_CLASSSTYLE_ 窗口类属性* TRACE(LPCTSTR pstrFormat, ...)转载 2012-04-05 23:21:58 · 1502 阅读 · 0 评论 -
DUILibxml配置
我这里是借用网友colin3dmax整理的关于duilib的分析哈,感谢他的分享,我觉得很有必要贴出来让大家都学习观摩下DUILibxml配置项根节点 子类 属性 类型Window转载 2012-04-05 23:19:36 · 950 阅读 · 0 评论 -
DUiLib 源码分析——第二篇UIBase
DUiLib 源码分析 ——以UiLib 1.01版为分析目标----------------------------------------------------------------------------------分析约定:private o------- 私有的成员变量或方法protect x------- 受保护的成员变量或方法public +-------转载 2012-04-05 23:17:11 · 2684 阅读 · 1 评论 -
DUiLib 源码分析——第一篇UIManager
DUiLib 源码分析 ——以UiLib 1.01版为分析目标----------------------------------------------------------------------------------分析约定:private o------- 私有的成员变量或方法protect x------- 受保护的成员变量或方法public +-------转载 2012-04-05 23:15:33 · 1509 阅读 · 0 评论 -
Get the 48×48 or 256×256 icon of a file on Windows
转载自 http://pogopixels.com/blog/getting-the-48x48-or-256x256-icon-of-a-file-on-windows/转载 2014-09-16 10:43:05 · 806 阅读 · 0 评论