SimpleWindow
载入中...
搜索中...
未找到
Icon.h
1#pragma once
2
3#include <string>
4#include <windows.h>
5
6namespace sw
7{
12 enum class StandardIcon {
13 Application = 32512,
14 Error = 32513,
15 Question = 32514,
16 Warning = 32515,
17 Information = 32516,
18 WinLogo = 32517,
19 Shield = 32518,
20 };
21
26 {
27 private:
31 IconHelper() = delete;
32
33 public:
40
48
54 static HICON GetIconHandle(const std::wstring &fileName);
55 };
56}
值转换器接口
Definition IValueConverter.h:14
用于获取图标句柄的工具类
Definition Icon.h:26
static HICON GetIconHandle(StandardIcon icon)
获取系统标准图标句柄
static HICON GetIconHandle(const std::wstring &fileName)
从文件加载图标句柄
static HICON GetIconHandle(HINSTANCE hInstance, int resourceId)
从指定模块中获取图标句柄
SimpleWindow框架的顶级命名空间,所有公共类型、控件、枚举和工具函数均定义于此。
Definition Alignment.h:4
StandardIcon
系统标准图标样式
Definition Icon.h:12
@ Warning
Warning icon
@ Error
Error icon
@ Shield
Security shield icon
@ WinLogo
Windows logo icon
@ Information
Information icon
@ Question
Question mark icon
@ Application
Default application icon