摘要: 我们在对 windows 设备进行绘图操作的时候要用到 GDI 函数 并且要获取 设备的 DC 也就是设备的代号 如果是响应WM_PAINT 消息 那么 我们利用 BeginPaint .......code EndPaint 获取设备上下文代号 如果处理的不是 WM_PAINT 消息 那么... 阅读全文
posted @ 2011-10-20 22:01 programmer小卫 阅读(232) 评论(0) 推荐(0)
摘要: #include "windows.h"#include "stdio.h"#include "stdlib.h" #include "resource.h" //预编译我们的资源文件#include "tchar.h"LRESULT CALLBACK MyProc(HWND hwnd, UINT ... 阅读全文
posted @ 2011-10-20 14:47 programmer小卫 阅读(127) 评论(0) 推荐(0)
摘要: windows.h 中包含了 许多其他的头文件 主要是 WINUSER.H 使用者界面 WINBASE.H kernel函数 WINDEF.H 一些类型的define WINNT.H 支持 UNICODE形态定义 WINGDI.H 包含图形界面函数 应用程序的入口函数 int WINAP... 阅读全文
posted @ 2011-10-20 11:10 programmer小卫 阅读(112) 评论(0) 推荐(0)