上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: // DrawItem.cpp : Defines the entry point for the application.//自绘按钮,剪贴板,热键,剪贴板,微调按钮的使用。//功能:利用剪贴板实现SN的简单填写。#include "stdafx.h"#include "resource.h"#include <commctrl.h>BOOL myDlg(HWND hwndDlg, // handle to dialog boxUINT uMsg, // messageWPARAM wParam, // first message para 阅读全文
posted @ 2007-04-12 09:48 巨巨 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 这里的文章是本人在学习的时候的总结。可以转载,但请保留出处! 阅读全文
posted @ 2007-04-09 19:05 巨巨 阅读(82) 评论(0) 推荐(0) 编辑
摘要: // ProcEnum.cpp : Defines the entry point for the application.//本程序演示了如何列举系统进程,并且更改进程的优先级,结束进程//控件:ListView,TrackBar控件的使用示例,其中资源是添加了两个对话框模板#include "stdafx.h"#include "resource.h"#include <stdio.h>#include <commctrl.h>#include <Tlhelp32.h>#include <stdlib.h&g 阅读全文
posted @ 2007-04-09 16:36 巨巨 阅读(206) 评论(0) 推荐(0) 编辑
摘要: CreateProcess -----创建进程GetCurrentProcess----返回一个指向当前进程的伪句柄,只能在当前进程中使用GetCurrentProcessID----可以取得当前进程的IDCreateToolhelp32Snapshot----获得进程、模块或线程的快照列表,返回一个句柄。Process32First----获得CreateToolhelp32Snapshot生成的快照列表的第一项Process32Next----获得CreateToolhelp32Snapshot生成的快照列表的下一项OpenProcess----打开并取得一个进程的句柄GetPriorit 阅读全文
posted @ 2007-04-09 16:35 巨巨 阅读(158) 评论(0) 推荐(0) 编辑
摘要: // dlgMain.cpp : Defines the entry point for the application.//一个关机程序。#include "stdafx.h"#include "resource.h"#include <stdio.h>#include < Shellapi.h>HINSTANCE hInst;HICON hIcon;int hour,minute;NOTIFYICONDATA nib;char temp[32];#define WM_NOTIFYICON WM_USER+1BOOL IsBeg 阅读全文
posted @ 2007-04-05 16:11 巨巨 阅读(174) 评论(0) 推荐(0) 编辑
摘要: // PicCount.cpp : Defines the entry point for the application.//演示了如何进行贴图,使用定时器的过程,动态创建透明背景的静态控件,设置背景、文本颜色#include "stdafx.h"#include "resource.h"#include <stdio.h>#include <Winbase.h>#define MAX_LOADSTRING 100// Global Variables:HINSTANCE hInst;// current instanceTCH 阅读全文
posted @ 2007-04-03 19:28 巨巨 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 文章来源:http://www.vckbase.com/document/viewdoc/?id=488系统理解Win32 API和MFC(下)作者: 温昱 作者主页: lcspace.diy.163.com 二、MFC的概念模型前面我们研究了WIN32 API的“领域模型”,对它有较全面的认识。下面,对MFC概念模型的研究,我们把重点放在对app framework的研究上。app framework中的message响应/传递机制是最重要的。而Hook机制和Message响应/传递机制是密切相关的,后者以前者为基础。1. Hook机制也许有些程序员只知道hook机制可以编写很“牛”的应用. 阅读全文
posted @ 2007-04-03 14:36 巨巨 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 文章来源:http://www.vckbase.com/document/viewdoc/?id=487系统理解Win32 API和MFC(上)作者: 温昱 作者主页: lcspace.diy.163.com Win32 API是微软的操作系统Windows提供给开发人员的编程接口,它决定了我们开发的Windows应用程序的能力。MFC是微软为开发人员提供的类库,在某种意义上是对Win32 API的封装。本文试图从全局角度对Win32 API和MFC进行理解──给出二者的概念模型。本文使用UML描述概念模型。Win32 API本不是面向对象的,我用面向对象的观点去理解它,无非是想表达其全局。 阅读全文
posted @ 2007-04-03 10:59 巨巨 阅读(161) 评论(0) 推荐(0) 编辑
摘要: // TextEample.cpp : Defines the entry point for the application.//演示了如何创建复选框,下拉列表框,以及字体的使用。遍历系统字体。#include "stdafx.h"#include "resource.h"#include <stdio.h>#include <stdlib.h>#define MAX_LOADSTRING 100// Global Variables:HINSTANCE hInst;// current instanceTCHAR szTitl 阅读全文
posted @ 2007-04-02 16:28 巨巨 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 一、显示文本int DrawText(HDC hdc,LPCTSTR lpString,int nCount,LPRECT lpRect,UINTuFormat);//该函数在由lpRect参数指定的矩形中显示格式化的文本,可以调整左对齐、右对齐以及居中显示。BOOL TextOut(HDC hdc,int nXStart,int nYStart,LPCTSTR lpString,int cbString);//该函数用当前DC中选择的字体在指定的DC上显示字符串,参考点(nXStart,nYStart)的信息依赖于SetTextAlign设置的方式。BOOL GrayString(HDC h 阅读全文
posted @ 2007-04-02 14:38 巨巨 阅读(297) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页