简介 如果你编写的程序是针对非英语国家的用户,如中国、日本、东欧和中东地区,那么你一定要熟悉 UNICODE 字符集。尤其是用 Visual C++/MFC 编写针对上述国家和地区的用户的程序时,如果你想让自己的应用程序得到更广泛的用户,那么必须考虑代码 UNICODE 的兼容性,也就是说它既在 A Read More
posted @ 2016-08-26 18:07 findumars Views(1124) Comments(0) Diggs(0)
1、发送消息SendMessage、PostMessage PostMessage将消息放入消息队列后马上返回,而SendMessage直到窗口过程处理完消息后才返回 2、三个消息的区别 WM_CLOSE: 在系统菜单里选择了“关闭”或者点击了窗口右上角的“X”按钮,你的窗口过程就会收到WM_CLO Read More
posted @ 2016-08-26 18:01 findumars Views(6098) Comments(0) Diggs(1)
MSDN如是说:The LockWindowUpdate function disables or enables drawing in the specified window. Only one window can be locked at a time. BOOL LockWindowUpd Read More
posted @ 2016-08-26 17:53 findumars Views(1141) Comments(0) Diggs(0)
最近有朋友问如下问题: #include <stdio.h>#include <stdlib.h>#include <iconv.h>#include <time.h> int main(){struct tm *tms;time_t now = time(0);tms = localtime(&n Read More
posted @ 2016-08-26 17:49 findumars Views(2398) Comments(0) Diggs(0)
一个由c/C++编译的程序占用的内存分为以下几个部分 1、栈区(stack)— 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中的栈。 2、堆区(heap) — 一般由程序员分配释放, 若程序员不释放,程序结束时可能由OS回收 。注意它与数据结构中的堆是两回事,分 Read More
posted @ 2016-08-26 17:48 findumars Views(2723) Comments(0) Diggs(0)