上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页
摘要: 确保在Gdiplus::GdiplusShutdown(m_gdiplusToken); 之前delete 掉GDI+的对象,例如:delete *pBitmap;如果先Gdiplus::GdiplusShutdown(m_gdiplusToken);再delete *pBitmap; 程序会崩溃。... 阅读全文
posted @ 2013-12-03 15:22 奥雷连诺 阅读(850) 评论(0) 推荐(0)
摘要: error C3861: 'DDX_Control': identifier not found继承类加上 public CWinDataExchange, public CCustomDraw 阅读全文
posted @ 2013-12-02 14:20 奥雷连诺 阅读(241) 评论(0) 推荐(0)
摘要: 用WTL编写的程序,编译成release后,在win7上关闭后,弹出这个对话框处理方法:将这个xml文件命名成 xxx.exe.manifest,保存到指定目录下 右键工程->properties-->Configuration Properties-->Manifest Tool-->Input ... 阅读全文
posted @ 2013-12-02 14:15 奥雷连诺 阅读(641) 评论(0) 推荐(0)
摘要: Configuration->General->Output Directory->单击编辑框点下拉箭头-> 图1图2 阅读全文
posted @ 2013-12-02 13:44 奥雷连诺 阅读(1296) 评论(0) 推荐(0)
摘要: #include using namespace std;int main(){ vector resizeVect; vector reserveVect; resizeVect.resize(50, 2); //立即分配50个int,每个值为2,默认值为... 阅读全文
posted @ 2013-11-04 11:48 奥雷连诺 阅读(224) 评论(0) 推荐(0)
摘要: .h#pragma once#include #include #include #include using namespace std;class WininetFtpClient{public: WininetFtpClient(void); ~WininetFtpClient(v... 阅读全文
posted @ 2013-11-01 14:17 奥雷连诺 阅读(326) 评论(0) 推荐(0)
摘要: //GBK转UTF8string CAppString::GBKToUTF8(const string & strGBK) { string strOutUTF8 = ""; WCHAR * str1; int n = MultiByteToWideChar(CP_ACP, 0,... 阅读全文
posted @ 2013-10-16 16:12 奥雷连诺 阅读(362) 评论(0) 推荐(0)
摘要: Windows上右键git菜单出来的原因Git下载地址https://code.google.com/p/msysgit/downloads/list?q=full+installer+official+gitGit右键菜单,见图(1-1)图(1-1)使用1.7.8版本好像不能出现右键菜单,试了好几... 阅读全文
posted @ 2013-10-16 11:22 奥雷连诺 阅读(673) 评论(0) 推荐(0)
摘要: char strTtimeDump[512] = ""; int a = 5; sprintf(strTtimeDump, "%.4d", a); //strTtimeDump输出0005 数字前补3个0 sprintf(strTtimeDump, "%4d", a... 阅读全文
posted @ 2013-10-09 11:27 奥雷连诺 阅读(3498) 评论(0) 推荐(0)
摘要: #include //选择排序void SelectSort(int *p, const int length){ if (p == NULL) { return; } for (int i = 0; i p[j]) { ... 阅读全文
posted @ 2013-10-08 14:11 奥雷连诺 阅读(296) 评论(0) 推荐(0)
摘要: #include #include using std::string;using std::vector;int splitStringToVect(const string & srcStr, vector & destVect, const string & strFlag);int main... 阅读全文
posted @ 2013-06-25 17:52 奥雷连诺 阅读(2609) 评论(0) 推荐(0)
摘要: .h CToolTipCtrl *m_pToolTip;.cpp if(!m_pToolTip) { m_pToolTip = new CToolTipCtrl(); m_pToolTip->Create(this, TTS_ALWAYSTIP); //... 阅读全文
posted @ 2013-05-29 14:07 奥雷连诺 阅读(372) 评论(0) 推荐(0)
摘要: 在wnidows C++ 客户端开发中,使用GDI+和png透明或者异形图片,结合UpdateLayeredWindow 双层窗口,可以实现透明,阴影,异形的效果。 其原理便是背景窗口使用UpdateLayeredWindow,刷新png图片,前景窗口作为实际窗口放一些空间,但前景窗口实际上是透明的... 阅读全文
posted @ 2013-04-28 21:11 奥雷连诺 阅读(1318) 评论(0) 推荐(0)
摘要: BOOL CXXXDlg::OnEraseBkgnd(CDC *pDC){ CRect rect; this->GetClientRect(rect); if(!m_pBkImage) ... 阅读全文
posted @ 2013-04-27 18:28 奥雷连诺 阅读(187) 评论(0) 推荐(0)
摘要: 托盘上的菜单右键弹出后,然后再别的地方,比如桌面,菜单无法隐藏掉,一直在托盘上,除非操作下菜单才能隐藏掉,只需要加上一句话::SetForegroundWindow(m_nid.hWnd); 就可以解决这个问题。下面是托盘创建class CXXXDlg{private:NOTIFYICONDATA ... 阅读全文
posted @ 2013-04-26 16:49 奥雷连诺 阅读(679) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页