操作系统与底层 第2页
操作系统与底层
WindowsAPI-控件:ProgressBar-C佳家

WindowsAPI-控件:ProgressBar

使用WindowsAPI,创建ProgressBar控件:#include <windows.h> #include <commctrl.h> #define TIMER_ID 1 #pragma comment(lib, 'comctl32.lib') HWND hwndProgressBar; int c = 0;...
用户80404320的头像-C佳家用户804043201年前
04815
WindowsAPI-控件:ComboBoxEx32-C佳家

WindowsAPI-控件:ComboBoxEx32

使用WindowsAPI,创建ComboBoxEx32控件:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #define COMBOBOXEX_ID 101 HINSTANCE hInst; LRESULT...
用户80404320的头像-C佳家用户804043201年前
0275
WindowsAPI-控件:SysHeader32-C佳家

WindowsAPI-控件:SysHeader32

使用WindowsAPI,创建SysHeader32控件:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #define ID_HEADER 101 LRESULT CALLBACK WindowProc(H...
用户80404320的头像-C佳家用户804043201年前
03711
WindowsAPI-控件:Hotkey-C佳家

WindowsAPI-控件:Hotkey

使用WindowsAPI,创建Hotkey控件:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #pragma comment(linker,'\'/manifestdependency:type='win3...
用户80404320的头像-C佳家用户804043201年前
05315
WindowsAPI-控件:Tooltips_class32-C佳家

WindowsAPI-控件:Tooltips_class32

使用WindowsAPI,创建Tooltips控件:#include <windows.h> #include <commctrl.h> // Include the common controls #pragma comment(lib, 'comctl32.lib') #pragma comment(linker,...
用户80404320的头像-C佳家用户804043201年前
0345
WindowsAPI-控件:Edit-C佳家

WindowsAPI-控件:Edit

使用WindowsAPI,创建Edit控件:#include <windows.h> // 全局声明 HINSTANCE hInst; LPCWSTR szWindowClass = L'win32app'; LPCWSTR szTitle = L'Win32 编辑控件示例'; // 此代码模块中...
用户80404320的头像-C佳家用户804043201年前
03511
WindowsAPI-控件:Static-C佳家

WindowsAPI-控件:Static

使用WindowsAPI,创建一个static控件:#include <windows.h> #include <CommCtrl.h> #pragma comment(lib, 'comctl32.lib') // 窗口过程函数 LRESULT CALLBACK WindowProc(HWND hwn...
用户80404320的头像-C佳家用户804043201年前
04811
WindowsAPI-控件:MonthCalendar-C佳家

WindowsAPI-控件:MonthCalendar

使用WindowsAPI,创建MonthCalendar控件:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #define ID_CALENDAR 101 LRESULT CALLBACK WindowPr...
用户80404320的头像-C佳家用户804043201年前
05812