mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
fd9dca924a
- 新增 refresh_list_style 函数,根据行号奇偶性设置交替背景色 - 在列表加载、新增、删除、上下移动条目时自动刷新样式 - 移除原有的横线分隔符,使界面更简洁 - 调整主函数中控制台编码设置的位置
19 lines
326 B
C
19 lines
326 B
C
#ifndef UTILS_H
|
|
#define UTILS_H
|
|
|
|
#include <windows.h>
|
|
#include <wchar.h>
|
|
|
|
// 宽字符转UTF-8
|
|
char* wide_to_utf8(const wchar_t* wstr);
|
|
|
|
// UTF-8转宽字符
|
|
wchar_t* utf8_to_wide(const char* str);
|
|
|
|
// 检查管理员权限
|
|
int check_admin();
|
|
|
|
// 刷新列表样式(斑马纹)
|
|
void refresh_list_style();
|
|
|
|
#endif // UTILS_H
|