summaryrefslogtreecommitdiff
path: root/Editor/Win/Win.h
diff options
context:
space:
mode:
Diffstat (limited to 'Editor/Win/Win.h')
-rw-r--r--Editor/Win/Win.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/Editor/Win/Win.h b/Editor/Win/Win.h
index 8d7d85d..a60cb83 100644
--- a/Editor/Win/Win.h
+++ b/Editor/Win/Win.h
@@ -8,6 +8,10 @@
namespace Win
{
+ // 拿到当前程序的handle
+ HINSTANCE GetInstanceHandle();
+
+ // 当前工作目录
std::string GetCurrentWorkingDirectory();
void SetDllSearchDirectory(std::string path);
@@ -18,4 +22,23 @@ namespace Win
// 当前的执行是否在主线程
bool IsInMainThread();
-}
+ // 鼠标光标设置
+ enum ECursor
+ {
+ Cursor_AppStarting, // 标准的箭头和小沙漏
+ Cursor_Arrow, // 标准的箭头
+ Cursor_Cross, // 十字光标
+ Cursor_Help, // 标准的箭头和问号
+ Cursor_IBeam, // 工字光标
+ Cursor_NO, // 禁止圈
+ Cursor_SizeAll, // 四向箭头指向东、西、南、北
+ Cursor_SizeNESW, // 双箭头指向东北和西南
+ Cursor_SizeNS, // 双箭头指向南北
+ Cursor_SizeNWSE, // 双箭头指向西北和东南
+ Cursor_SizeWE, // 双箭头指向东西
+ Cursor_UpArrow, // 垂直箭头
+ Cursor_Wait, // 沙漏
+ };
+ void SetCursor(ECursor cursor);
+
+} \ No newline at end of file