上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 46 下一页
摘要: 设置图片控件类型位owner draw 在onpaint事件中重绘 CImage image; //IDC_MainImg为图片控件ID CWnd* pWnd = GetDlgItem(IDC_MainImg); CDC* pDC = pWnd->GetDC(); HDC hDC = pDC->m_ 阅读全文
posted @ 2021-10-08 14:49 Hey,Coder! 阅读(463) 评论(0) 推荐(0)
摘要: 工程文件添加以下内容 <UseWindowsForms>true</UseWindowsForms> 阅读全文
posted @ 2021-09-26 17:29 Hey,Coder! 阅读(150) 评论(0) 推荐(0)
摘要: 定义自定义转换类来忽略特定类型 /// <summary> /// 自定义转换类 /// </summary> public class CustomConverter<T> : JsonConverter<T> { public override T ReadJson(JsonReader rea 阅读全文
posted @ 2021-09-15 16:36 Hey,Coder! 阅读(1076) 评论(0) 推荐(0)
摘要: //64位 C:\Program Files\dotnet\shared\Microsoft.NETCore.App //32位 C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App 可简单检测检测目录是否存在 阅读全文
posted @ 2021-09-09 17:47 Hey,Coder! 阅读(485) 评论(0) 推荐(0)
摘要: //c:/windows/system32 CString FileUtil::GetSystem32Dir() { CString strPath; ::GetSystemDirectory(strPath.GetBuffer(_MAX_PATH), _MAX_PATH); strPath.Rel 阅读全文
posted @ 2021-09-08 11:50 Hey,Coder! 阅读(61) 评论(0) 推荐(0)
摘要: 版本帮助程序函数 #include <VersionHelpers.h> if (!IsWindows8OrGreater()) { MessageBox(NULL, "You need at least Windows 8", "Version Not Supported", MB_OK); } 阅读全文
posted @ 2021-09-08 09:54 Hey,Coder! 阅读(227) 评论(0) 推荐(0)
摘要: 下载vcpkg git clone https://github.com/microsoft/vcpkg 编译vcpkg Vcpkg大量使用的psl脚本,所以官方强烈推荐使用PowerShell而不时CMD命令行来执行各种操作。尽管在使用的时候兼容CMD,但是在编译这一步,请使用PowerShell 阅读全文
posted @ 2021-09-07 17:53 Hey,Coder! 阅读(2499) 评论(0) 推荐(0)
摘要: CreateProcess lpApplicationName:指向一个以空结尾的串,他指定了要执行的模块 ***此参数为空时命令行参数才能正常传递*** 想运行的可执行文件的名字的字符串(应含扩展名)。如果找不到该文件,CreateProcess运行失败。应该设为NULL。 lpCommandLi 阅读全文
posted @ 2021-09-07 10:48 Hey,Coder! 阅读(186) 评论(0) 推荐(0)
摘要: 注释 rem rem dir /B /A:D 定义变量 set v=xxx 数学计算 set /a max=%max%+1 关闭输出 @echo off 变量延迟扩展 setlocal enabledelayedexpansion for 目录 for /f "delims=" %%i in ('d 阅读全文
posted @ 2021-09-01 19:47 Hey,Coder! 阅读(131) 评论(0) 推荐(0)
摘要: <Window x:Class="CommonUI.Control.Mask.Mask" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2021-08-19 12:03 Hey,Coder! 阅读(2308) 评论(2) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 46 下一页