
Windows
文章平均质量分 75
HoNooD
这个作者很懒,什么都没留下…
展开
-
Windows 消息机制要点
链接:http://developer.51cto.com/art/200708/54695.htm 系统将会维护一个或多个消息队列, 所有产生的消息都会被放入或是插入队列中. 系统会在队列中取出每一条消息,根据消息的接收句柄而将该消息发送给拥有该窗口的程序的消息循环. 1. 窗转载 2011-07-26 14:18:40 · 1929 阅读 · 0 评论 -
GetProcAddress 使用注意事项
使用 GetProcAddress Function 时,有以下几点需要特别留意:1. 第二个参数类型是 LPCSTR,不是 LPCTSTR;2. 用 __declspec(dllexport),按 C 名称修饰(extern "C") 导出的函数名,对于 __std原创 2011-08-12 09:08:38 · 27892 阅读 · 0 评论 -
VC manifest
从 VS2005 开始,微软在 VC 的编译选项中添加了manifest (中文) 这个功能,这将有助于软件以Side-by-side 方式运行。采用 /MD 和 /MDd 运行时库选项的项目 manifest 是必要的。当程序启动时发生类似下图找不到 MSVCRxx转载 2011-08-12 16:20:08 · 2796 阅读 · 0 评论 -
VC运行时库
Reusable Library Switch Library Macro(s) Defined----------------------------------------------------------------Single Th转载 2011-08-12 15:48:50 · 2827 阅读 · 1 评论 -
5种方式关闭 MFC 对话框程序时,几个主要方法的执行顺序。
[X / Alt+F4][7580] ____DebugInfo____ CDialogTestDlg::WindowProc, got WM_CLOSE[7580] ____DebugInfo____ CDialogTestDlg::OnClose[7580] ____D原创 2011-09-23 14:28:48 · 2670 阅读 · 2 评论 -
用 Windows API 创建和编辑 .ini 文件
1. 与 .ini 文件相关的 API 有两类:1)操作系统配置文件 Win.ini 的函数GetProfileSectionGetProfileStringGetProfileIntWriteProfileSectionWriteProfileString2)操原创 2011-10-10 18:12:38 · 6097 阅读 · 1 评论 -
MFC 的 Picture Control 加载 BMP/PNG 图片的方法
1. 加载 BMPCStatic* pWnd = (CStatic*)GetDlgItem(IDC_PIC); // 得到 Picture Control 句柄pWnd->ModifyStyle(0, SS_BITMAP); // 修改它的属性为位图pWnd->SetBi原创 2011-10-09 10:56:58 · 46995 阅读 · 4 评论