- 博客(10)
- 收藏
- 关注
转载 LB_GETCURSEL和LB_GETTEXT的使用
case IDC_LIST1: { switch (HIWORD(wParam)) { case LBN_DBLCLK: { HWND hwndList = Ge...
2019-09-27 11:46:00 1048
转载 使用RegisterPointerInputTarget时的一些注意事项
RegisterPointerInputTarget :允许调用者注册一个目标窗口,指定类型的所有指针输入都重定向到该窗口。要使用它必须使UIAccess = true,见下图在设置完之后,需要对生成的.exe可执行文件签名。操作步骤:以管理员身份打开Developer Command Prompt for VS2017(不同版本的VS的名称不一样,用起来是一样的...
2019-09-27 11:09:00 536
转载 DirectX屏幕捕获和输出视频
#include <Windows.h>#include <mfapi.h>#include <mfidl.h>#include <Mfreadwrite.h>#include <mferror.h>#include <d3d9.h>#pragma comment(lib, "mfre...
2019-09-19 15:10:00 773
转载 ListView的创建
里面涉及到很多知识包括3D样式的去除,重绘ListView控件,以及处理控件的边框颜色// Test_listview_1.cpp : Defines the entry point for the application.//#include "stdafx.h"#include "Test_listview_1.h"#include <commc...
2019-09-12 18:27:00 189
转载 win32创建工具栏的自定义图标
注意点:使用LoadImage函数加载bmp图片,这里特指BMP图片,其实LoadImage可以加载很多格式的图片HBITMAP bitmap = (HBITMAP)LoadImage((HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE), MAKEINTRESOURCE(IDB_LIST), IMAGE_BITMAP, 32, 32, NU...
2019-09-11 16:55:00 457
转载 从位图图像中读取2D纹理(C ++,OpenGL)
一共有2个.cpp文件和1个.h头文件步骤:需要安装GLUT,因为GLUT是第三方库,即它不是OpenGL的一部分。因此,它不是Windows系统API的一部分,因此不属于标准Windows SDK。下载链接:http://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MSVC.zip安装方...
2019-09-10 14:15:00 233
转载 Metafile::EmfToWmfBits的使用
其中涉及到string转换LPCWSTR以及模块绝对路径的调用#include <iostream>#include <stdio.h>#include <WINDOWS.H>#include <shellapi.h>#include <gdiplus.h>#include <Shlwapi.h...
2019-09-09 16:08:00 230
转载 二级指针赋值
#include <stdio.h>#include <Windows.h>#pragma warning(disable:4996)char name[100];void modify(char ** a){ //char* name = new char[100]; strcpy(name, "1"); ...
2019-09-06 18:19:00 746
转载 在python里使用WriteProcessMemory修改内存地址上的值
import osimport sysfrom ctypes import *windll.kernel32.WriteProcessMemory.argtypes = [c_void_p, c_void_p, c_void_p, c_int, c_void_p]windll.kernel32.WriteProcessMemory.restype = c_void...
2019-09-05 10:03:00 1397
转载 传十六进制的值和传十六进制值的地址
#include <stdio.h>int main(){ int a = 0x40000000; char * b = (char*)a; void *c = &b; printf("0x%x\n", b); printf("0x%x\n", c); return...
2019-09-05 09:56:00 619
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人