2014年9月2日

PreTranslateMessage作用和使用方法

摘要: 函数原型:virtualBOOLPreTranslateMessage(MSG*pMsg)1、在MFC中,PreTranslateMessage是虚函数,是用来截获消息的。我们可以通过重载它来处理键盘和鼠标消息。在sdk中,这有所不同,我们必须在回调函数 LRESULTCALLBACKWndProc... 阅读全文

posted @ 2014-09-02 11:46 花开丶花落 阅读(20619) 评论(0) 推荐(3) 编辑

2014年8月21日

char* wchat_t*互转 及 A2T, T2A宏及其实现原理

摘要: char :单字节变量类型,表示ASCII码。wchar_t :宽字节变量类型,用于表示Unicode字符。在定义为:typedef unsigned short wchar_t。TCHAR: VS下的中间类型。在“使用Unicode字符集”下TCHAR定义为wchar_t,在字符集 “未设置” 条... 阅读全文

posted @ 2014-08-21 08:55 花开丶花落 阅读(705) 评论(0) 推荐(1) 编辑

2014年7月30日

两个变量进行交换

摘要: int iVar=18;int jVar=10;cout<<"|——————————————————|"<<endl;cout<<"| 转换前iVar="<<iVar<<" |"<<endl;cout<<"| 转换前jVar="<<jVar<<" |"<<endl;cout<<"|---------... 阅读全文

posted @ 2014-07-30 22:11 花开丶花落 阅读(197) 评论(0) 推荐(0) 编辑

导航