- 博客(12)
- 收藏
- 关注
原创 You don't have time to fiddle with administrivia.
You dont have time to fiddle with administrivia.fiddle, vi.拉小提琴, 瞎搞 [fidl]administrivia, 每天重复性的电子信件,新闻,摘要等的处理工作
2005-11-30 21:18:00 1081
原创 The palest of ink is better than the best memory.
The palest of ink is better than the best memory.好记性不如烂笔头.pale 苍白的
2005-11-30 21:15:00 1807
原创 AfxGetMainWnd返回NULL也是可能的
AfxGetMainWnd返回NULL也是有可能的。因为_AFXWIN_INLINE CWnd* AFXAPI AfxGetMainWnd() { CWinThread* pThread = AfxGetThread(); return pThread != NULL ? pThread->GetMainWnd() : NULL; }而CWnd* CWinThread::GetMainWnd()
2005-11-27 23:34:00 4439 2
原创 在任务栏上显示/隐藏窗口
在任务栏上显示/隐藏窗口WS_EX_APPWINDOW Forces a top-level window onto the taskbar when the window is visible. 这个属性在对话框的属性页中是找不到的,可以直接在.rc中编辑。另外,WS_EX_TOOLWINDOW也可以在任务栏上隐藏窗口,但是那个窗口的标题栏会使用小字体。WS_EX_TOOLWINDOW Cr
2005-11-26 12:35:00 2650
原创 Eat one's own dog food
这实际上是一个熟语,slangTo say that an association is "eating its own dog food" means that the association uses the products that it produces.有的说来源与微软,因为Microsoft emphasizes the use of its own beta and release
2005-11-17 12:27:00 2274
原创 判断一个字符串能否成为合法的文件名
windows里面,文件名的命名规则:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp按照这个规则,有人写了一个函数:http://www.codeproject.com/file/isvalidfilename.aspMS为什么不提供一个这样的函数呢?
2005-11-16 20:17:00 5912 1
原创 How To Drawing Transparent Bitmaps
TransparentBlt, But I think you should look at http://support.microsoft.com/default.aspx?scid=kb;en-us;79212 before you use this function.And I really recommand you look at http://www.winprog.net/tuto
2005-11-16 20:11:00 1339
原创 ON_MESSAGE macro doesn't make sense in non-CWnd derived classes
看msdn,突然看到这样一句话,why?#define ON_MESSAGE(message, memberFxn) / { message, 0, 0, 0, AfxSig_lwl, / (AFX_PMSG)(AFX_PMSGW)(LRESULT (AFX_MSG_CALL CWnd::*)(WPARAM, LPARAM))&memberFxn },其中的指针,memberFxn,必须是指向C
2005-11-06 20:39:00 1077
原创 当工具栏数目变化时,LoadBarState出错
http://www.codeproject.com/docking/verifystateinfo.asp
2005-11-05 23:54:00 1073
原创 how to grey out a whole submenu?
http://www.microsoft.com/msj/0299/c/c0299.aspx
2005-11-05 13:57:00 850
原创 Tab stop in CFileDialog and CTabCtrl
When we add some controls to create a new costumered CFileDialog, its hard to nevigate to the new added controls by pressing tab key.The solution is to add WS_EX_CONTROLPARENT to the dialog, Cool!Fro
2005-11-05 12:35:00 1361
原创 尽可能的使用异常exeption处理
class CXX{ public: CXX():m_n(0){;} int foo(return m_n); protected: int m_n}//mainCXX* pXX = NULL;try{ pXX->foo(); //用了异常处理后,程序依然能够运行,而不会crash}catch(...){}
2005-11-04 21:55:00 978
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人