2025年05月的文章 第4页

WindowsAPI-控件:Tooltips_class32-津桥芝士站

WindowsAPI-控件:Tooltips_class32

使用WindowsAPI,创建Tooltips控件:#include <windows.h> #include <commctrl.h> // Include the common controls #pragma comment(lib, 'comctl32.lib') #pragma comment(linker,...
WindowsAPI-控件:Hotkey-津桥芝士站

WindowsAPI-控件:Hotkey

使用WindowsAPI,创建Hotkey控件:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #pragma comment(linker,'\'/manifestdependency:type='win3...
WindowsAPI-控件:ListView(SysListView32)-津桥芝士站

WindowsAPI-控件:ListView(SysListView32)

使用WindowsAPI,创建一个ListView控件:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #define ID_LISTVIEW 101 LRESULT CALLBACK WindowPro...
WindowsAPI-控件:TreeView(SysTreeView32)-津桥芝士站

WindowsAPI-控件:TreeView(SysTreeView32)

使用WindowsAPI,创建SysTreeView32控件:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #define ID_TREEVIEW 101 HWND hwndTreeView; HTREEI...
WindowsAPI-控件:Edit-津桥芝士站

WindowsAPI-控件:Edit

使用WindowsAPI,创建Edit控件:#include <windows.h> // 全局声明 HINSTANCE hInst; LPCWSTR szWindowClass = L'win32app'; LPCWSTR szTitle = L'Win32 编辑控件示例'; // 此代码模块中...
WindowsAPI-控件:TrackBar-津桥芝士站

WindowsAPI-控件:TrackBar

使用WindowsAPI,创建TrackBar控件:#include <windows.h> #include <commctrl.h> #include <stdio.h> #pragma comment(lib, 'comctl32.lib') #define ID_TRACKBAR 101 #defi...
WindowsAPI-控件:ToolBar-津桥芝士站

WindowsAPI-控件:ToolBar

使用WindowsAPI,创建ToolBar控件:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #define ID_TOOLBAR 201 LRESULT CALLBACK WindowProc(HWND...
WindowsAPI-控件:GroupBox-津桥芝士站

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-控件:MonthCalendar-津桥芝士站

WindowsAPI-控件:MonthCalendar

使用WindowsAPI,创建MonthCalendar控件:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #define ID_CALENDAR 101 LRESULT CALLBACK WindowPr...
WindowsAPI-控件:RichEdit-津桥芝士站

WindowsAPI-控件:RichEdit

使用WindowsAPI,创建RichEdit:#include <windows.h> #include <commctrl.h> #include <richedit.h> #pragma comment(lib, 'comctl32.lib') //#pragma comment(lib, 'Msftedi...