From ae3225a4e7ef86d159fdf27834c453ffcd4da76c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 2 Aug 2022 20:10:35 +0200 Subject: Implement draggable split. Next step is to allow a double click to reset the split to be automatically resized. --- c/common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'c/common.h') diff --git a/c/common.h b/c/common.h index 6dfd782..d908d12 100644 --- a/c/common.h +++ b/c/common.h @@ -11,6 +11,9 @@ #define WA "A" #endif +int EBMessageBox(const wchar_t* wszText, const wchar_t* wszCaption, unsigned uType); +int GetRelativeCursorPos(HWND hWnd, POINT* pt); + struct wstring_owner { static wstring_owner from_narrow(const char* buf, int cp = CP_UTF8); @@ -28,8 +31,6 @@ struct wstring_owner wchar_t* p = nullptr; }; -int EBMessageBox(const wchar_t* wszText, const wchar_t* wszCaption, unsigned uType); - struct Win32Error : public std::exception { Win32Error(); -- cgit v1.2.3