解決 Warning: calling DestroyWindow in CWnd::~CWnd OnDestroy or PostNcDestroy in derived class will not be called
摘要: 解決 Warning: calling DestroyWindow in CWnd::~CWnd OnDestroy or PostNcDestroy in derived class will not be called
閱讀全文
posted @
2013-10-23 10:37 水 閱讀(3652) |
評論 (0) 編輯
selectany
摘要: __declspec( selectany ) declarator
閱讀全文
windows 多線程編程的幾點經驗 (防止死鎖)
摘要: windows 多線程編程的幾點經驗 (防止死鎖)
閱讀全文
posted @
2011-08-15 10:46 水 閱讀(1118) |
評論 (0) 編輯
vc2008對話框項目使用Feature Pack
摘要: 在vc2008 sp1中,引入了Feature Pack美化界面,不過微軟提供的例子都是針對單文檔或者多文檔項目的,要在對話框項目中使用Feature Pack中的一些美化控件(如CMFCListCtrl),需要在App類(繼承自CWinAppEx)的InitInstance函數中添加下面兩行:
CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerOffice2007));
CMFCVisualManagerOffice2007::SetStyle(CMFCVisualManagerOffice2007::Office2007_LunaBlue);
同時,在項目res目錄下的rc2文件中添加#include
。
閱讀全文
posted @
2010-11-16 18:46 水 閱讀(2362) |
評論 (0) 編輯
How to Check the Existence of a File or a Directory
摘要: How to Check the Existence of a File or a Directory
閱讀全文
在visual c++ 2003中用hash_map保存自定義類型數據
摘要: sgi stl中的hash_map使用請參加http://www.stlchina.org/twiki/bin/view.pl/Main/STLDetailHashMap
在vc中(本文以vc2003為編譯環境),hash_map與sgi stl中的定義是不一樣的,區別如下:
閱讀全文
posted @
2009-04-29 14:00 水 閱讀(2742) |
評論 (3) 編輯
GetWindowRect和GetClientRect(轉)
摘要: GetWindowRect和GetClientRect
閱讀全文
posted @
2009-03-10 17:10 水 閱讀(34250) |
評論 (1) 編輯
使VC Dialog窗體擁有透明效果的API(轉)
摘要: 使VC Dialog窗體擁有透明效果的API(轉)
閱讀全文
posted @
2009-03-09 11:33 水 閱讀(2555) |
評論 (0) 編輯