随笔分类 -  windows

摘要:// 02 文件操作.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include int _tmain(int argc, _TCHAR* argv[]) { //删除文件 //DeleteFile(TEXT("D:\\Test.txt")); //拷贝文件,同时也可以改名字 //CopyFile(TEXT("D... 阅读全文
posted @ 2016-03-25 14:37 天还是那么蓝 阅读(137) 评论(0) 推荐(0)
摘要:// FileControlExample.cpp : 定义应用程序的入口点。 // #include "stdafx.h" #include "FileControlExample.h" #include "FileControl.h" #include #include // 文件夹选择 #include // 扩展样式相关API #pragma comment(lib,"UxTh... 阅读全文
posted @ 2016-03-16 15:46 天还是那么蓝 阅读(256) 评论(0) 推荐(0)
摘要:#pragma once #include #include using std::list; typedef struct _FILE_INFO { WCHAR szFilePath[MAX_PATH]; // 文件路径 BOOL bIsFolder; // 是否为文件夹 DWORD64 ... 阅读全文
posted @ 2016-03-16 15:42 天还是那么蓝 阅读(261) 评论(0) 推荐(0)
摘要:  阅读全文
posted @ 2016-03-15 18:14 天还是那么蓝 阅读(145) 评论(0) 推荐(0)
摘要:  阅读全文
posted @ 2016-03-15 10:57 天还是那么蓝 阅读(196) 评论(0) 推荐(0)
摘要:  阅读全文
posted @ 2016-03-15 08:52 天还是那么蓝 阅读(514) 评论(0) 推荐(0)
摘要:  阅读全文
posted @ 2016-03-14 14:27 天还是那么蓝 阅读(226) 评论(0) 推荐(0)
摘要:1 // 01WM_PAINT与GetDC.cpp : 定义应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include "01WM_PAINT与GetDC.h" 6 7 #define MAX_LOADSTRING 100 8 9 #define MYBUTT 阅读全文
posted @ 2016-03-12 08:24 天还是那么蓝 阅读(458) 评论(0) 推荐(0)
摘要:1 // 02 文本输出.cpp : 定义应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include "02 文本输出.h" 6 7 #define MAX_LOADSTRING 100 8 9 // 全局变量: 10 HINSTANCE hInst; // 阅读全文
posted @ 2016-03-12 08:23 天还是那么蓝 阅读(303) 评论(0) 推荐(0)
摘要:1 // TestGDI.cpp : 定义应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include "TestGDI.h" 6 7 #define MAX_LOADSTRING 100 8 9 // 全局变量: 10 HINSTANCE hInst; // 阅读全文
posted @ 2016-03-12 08:13 天还是那么蓝 阅读(230) 评论(0) 推荐(0)
摘要:1 // 仿写_4_找茬辅助.cpp : 定义应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include "仿写_4_找茬辅助.h" 6 #include <windowsx.h> 7 #include <vector> 8 using std::vector 阅读全文
posted @ 2016-03-12 08:12 天还是那么蓝 阅读(272) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-03-10 20:47 天还是那么蓝 阅读(112) 评论(0) 推荐(0)
摘要:1 // 01控件.cpp : 定义应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include "01控件.h" 6 #include "Windowsx.h" 7 #include <commctrl.h> 8 #define MAX_LOADSTRING 阅读全文
posted @ 2016-03-10 20:34 天还是那么蓝 阅读(167) 评论(0) 推荐(0)
摘要:// 计算器.cpp : 定义应用程序的入口点。 // #include "stdafx.h" #include "计算器.h" #include"resource.h" #define MAX_LOADSTRING 100 // 全局变量: HINSTANCE hInst; // 当前实例 TCH 阅读全文
posted @ 2016-03-10 09:57 天还是那么蓝 阅读(354) 评论(0) 推荐(0)
摘要:// 003.cpp : 定义应用程序的入口点。 // #include "stdafx.h" #include "003.h" #define MAX_LOADSTRING 100 // 全局变量: HINSTANCE hInst; // 当前实例 TCHAR szTitle[MAX_LOADST 阅读全文
posted @ 2016-03-10 09:52 天还是那么蓝 阅读(463) 评论(0) 推荐(0)
摘要:1 // me.cpp : 定义应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include "me.h" 6 7 #define MAX_LOADSTRING 100 8 9 // 全局变量: 10 HINSTANCE hInst; // 当前实例 11 TC 阅读全文
posted @ 2016-03-08 15:21 天还是那么蓝 阅读(309) 评论(0) 推荐(0)
摘要://句柄无非就是一个数值,程序用它来标示某些东西 //一个句柄就是一个整形数值,即一个4字节(64位程序中为8字节)长的数值,用来标示应用程序 //中的各个对象,句柄不是指针 //居中输出关键代码 case WM_PAINT: { PAINTSTRUCT ps = {}; HDC hDC = Beg 阅读全文
posted @ 2016-03-08 14:39 天还是那么蓝 阅读(139) 评论(0) 推荐(0)
摘要:1 #include<windows.h> 2 //通用字符串的定义头文件 3 #include<tchar.h> 4 5 6 7 //消息回调函数 8 LRESULT CALLBACK WindowProc( 9 HWND hWnd, //窗口句柄 10 UINT uMsg, //消息ID 11 阅读全文
posted @ 2016-03-07 15:59 天还是那么蓝 阅读(345) 评论(0) 推荐(0)