随笔分类 - windows
摘要:// 02 文件操作.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include int _tmain(int argc, _TCHAR* argv[]) { //删除文件 //DeleteFile(TEXT("D:\\Test.txt")); //拷贝文件,同时也可以改名字 //CopyFile(TEXT("D...
阅读全文
摘要:// FileControlExample.cpp : 定义应用程序的入口点。 // #include "stdafx.h" #include "FileControlExample.h" #include "FileControl.h" #include #include // 文件夹选择 #include // 扩展样式相关API #pragma comment(lib,"UxTh...
阅读全文
摘要:#pragma once #include #include using std::list; typedef struct _FILE_INFO { WCHAR szFilePath[MAX_PATH]; // 文件路径 BOOL bIsFolder; // 是否为文件夹 DWORD64 ...
阅读全文
摘要: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
阅读全文
摘要:1 // 02 文本输出.cpp : 定义应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include "02 文本输出.h" 6 7 #define MAX_LOADSTRING 100 8 9 // 全局变量: 10 HINSTANCE hInst; //
阅读全文
摘要:1 // TestGDI.cpp : 定义应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include "TestGDI.h" 6 7 #define MAX_LOADSTRING 100 8 9 // 全局变量: 10 HINSTANCE hInst; //
阅读全文
摘要:1 // 仿写_4_找茬辅助.cpp : 定义应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include "仿写_4_找茬辅助.h" 6 #include <windowsx.h> 7 #include <vector> 8 using std::vector
阅读全文
摘要: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
阅读全文
摘要:// 计算器.cpp : 定义应用程序的入口点。 // #include "stdafx.h" #include "计算器.h" #include"resource.h" #define MAX_LOADSTRING 100 // 全局变量: HINSTANCE hInst; // 当前实例 TCH
阅读全文
摘要:// 003.cpp : 定义应用程序的入口点。 // #include "stdafx.h" #include "003.h" #define MAX_LOADSTRING 100 // 全局变量: HINSTANCE hInst; // 当前实例 TCHAR szTitle[MAX_LOADST
阅读全文
摘要: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
阅读全文
摘要://句柄无非就是一个数值,程序用它来标示某些东西 //一个句柄就是一个整形数值,即一个4字节(64位程序中为8字节)长的数值,用来标示应用程序 //中的各个对象,句柄不是指针 //居中输出关键代码 case WM_PAINT: { PAINTSTRUCT ps = {}; HDC hDC = Beg
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号