Windows配置C++ 17/20
1点击 MSYS2 (百度网盘)下载,或者是去到 MSYS2官网下载,并完成安装。2在安装路径下找到:msys2.exe,并打开。接着粘贴:pacman -Syu --disable-download-timeout提示输入的时候输入 Y 或者 y...
WindowsAPI-控件:Static
使用WindowsAPI,创建一个static控件:#include <windows.h> #include <CommCtrl.h> #pragma comment(lib, 'comctl32.lib') // 窗口过程函数 LRESULT CALLBACK WindowProc(HWND hwn...
Sublime Text配置C/C++教程
1先下载(百度网盘)安装软件,或去官网安装,除了选择安装路径之外,其它一直next即可。2安装软件软件后,我们在桌面新建一个文件夹,名字无所谓,将文件夹拖动至快捷方式上,即可通过Sublime ...
WindowsAPI-控件:ToolBar
使用WindowsAPI,创建ToolBar控件:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #define ID_TOOLBAR 201 LRESULT CALLBACK WindowProc(HWND...
WindowsAPI-控件:Edit
使用WindowsAPI,创建Edit控件:#include <windows.h> // 全局声明 HINSTANCE hInst; LPCWSTR szWindowClass = L'win32app'; LPCWSTR szTitle = L'Win32 编辑控件示例'; // 此代码模块中...
WindowsAPI-控件:GroupBox
使用WindowsAPI,创建GroupBox:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #define ID_GROUPBOX 101 #define ID_BUTTON 102 LRESULT CALL...
WindowsAPI-控件:Tooltips_class32
使用WindowsAPI,创建Tooltips控件:#include <windows.h> #include <commctrl.h> // Include the common controls #pragma comment(lib, 'comctl32.lib') #pragma comment(linker,...
WindowsAPI-控件:TrackBar
使用WindowsAPI,创建TrackBar控件:#include <windows.h> #include <commctrl.h> #include <stdio.h> #pragma comment(lib, 'comctl32.lib') #define ID_TRACKBAR 101 #defi...
vcpkg: Win11环境包管理工具配置教程
安装:1. 先打开任意一个空文件夹(假设文件夹路径为: c:\src),先将vcpkg克隆到本地:git clone https://github.com/microsoft/vcpkg如果您无法克隆到本地,您可以直接下载文件并解压到空文...
WindowsAPI-控件:SysHeader32
使用WindowsAPI,创建SysHeader32控件:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #define ID_HEADER 101 LRESULT CALLBACK WindowProc(H...
WindowsAPI-控件:ListView(SysListView32)
使用WindowsAPI,创建一个ListView控件:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #define ID_LISTVIEW 101 LRESULT CALLBACK WindowPro...
WindowsAPI-控件:ComboBoxEx32
使用WindowsAPI,创建ComboBoxEx32控件:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #define COMBOBOXEX_ID 101 HINSTANCE hInst; LRESULT...