摘要: 二、全局HOOKI、编写DLL1#include<windows.h>23HHOOKhMouseHook;4HHOOKhKeyHook;56#pragmadata_seg("MySec")7HWNDhWnd=NULL;8#pragmadata_seg()910//#pragmacomment(linker,"/section:MySec,RWS")11/*12HINSTANCEhIns... 阅读全文
posted @ 2005-11-10 21:37 zhh007's Bolg 阅读(540) 评论(0) 推荐(0) 编辑
摘要: HOOK分为内部HOOK和全局HOOK一、内部HOOK1、设置内部HOOKHHOOK SetWindowsHookEx( int idHook, // hook type HOOKPROC lpfn, // hook procedure HINSTANCE hMod, // handle to application instance DWORD dwThreadId // thread iden... 阅读全文
posted @ 2005-11-10 21:05 zhh007's Bolg 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 方法一:用图像控件方法二:用画刷实现平铺效果 首先在Dialog类中定义CBitmap变量,CBrush m_brBk;//在public中定义; 其次初始化m_brBk在OnInitDialog函数中,如下所示:1CBitmapbmp;2bmp.LoadBitmap(IDB_BITMAP2);3m_brBk.CreatePatternBrush(&bmp);4bmp.DeleteObje... 阅读全文
posted @ 2005-11-10 15:53 zhh007's Bolg 阅读(559) 评论(0) 推荐(0) 编辑
摘要: MSDN Visual C++ 开发中心http://www.microsoft.com/china/msdn/developercenter/VCPP/VCPPDC.aspxVisual C++开发指南网站http://www.vchelp.netVC知识库http://www.vckbase.com/VC大本营http://www.pcvc.net/category/sort.asp?cate... 阅读全文
posted @ 2005-11-10 11:09 zhh007's Bolg 阅读(600) 评论(1) 推荐(0) 编辑