diff options
Diffstat (limited to 'c/win.h')
-rw-r--r-- | c/win.h | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -4,6 +4,7 @@ #include <optional> #include <string_view> #include <windows.h> +#include <commctrl.h> /* Run given procedure at creation of next window. */ void WithNextWindow(void (*proc)(HWND)); @@ -125,9 +126,8 @@ inline BOOL SetWindowRect(const HWND hWnd, const RECT r) return SetWindowRect(hWnd, r.left, r.top, r.right, r.bottom); } -/* The following functions call uxtheme.dll functions, if uxtheme.dll - * exists, and otherwise do nothing. */ - +/* The following two functions call uxtheme.dll functions, if + * uxtheme.dll exists, and otherwise do nothing. */ inline BOOL EBIsThemeActive() { extern BOOL (*IsThemeActive)(); @@ -141,4 +141,10 @@ inline BOOL EBSetWindowTheme(const HWND hWnd, const wchar_t* const pszSubAppName return SetWindowTheme? SetWindowTheme(hWnd, pszSubAppName, pszSubIdList): 0; } +inline void Status(const wchar_t* msg, unsigned short i = 0) +{ + extern HWND g_hWndStatus; + SendMessage(g_hWndStatus, SB_SETTEXT, MAKEWPARAM(i,0), reinterpret_cast<LPARAM>(msg)); +} + #endif |