diff options
Diffstat (limited to 'c/main.cpp')
-rw-r--r-- | c/main.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -49,16 +49,16 @@ char g_limitScreenwriter[64]; /* Optional Windows functions. */ BOOL (*IsThemeActive)(); -BOOL (*SetWindowTheme)(HWND, LPCWSTR, LPCWSTR); +BOOL (*SetWindowTheme)(HWND, const wchar_t*, const wchar_t*); /* Initialize important global state on parent window creation. */ static LRESULT CALLBACK CBTProc(int, WPARAM, LPARAM); /* Process parent window commands. */ static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); /* Process main menu commands. */ -static void HandleMainMenu(HWND, unsigned short); +static void HandleMainMenu(HWND, WORD); /* Process context menu commands. */ -static void HandleContextMenu(HWND, unsigned short); +static void HandleContextMenu(HWND, WORD); /* Call Prolog predicate in other thread, if available. */ static void WaitFor(const char*, const char*); /* Handle messages to Help > About dialog. */ @@ -291,7 +291,7 @@ LRESULT CALLBACK WndProc(const HWND hWnd, const UINT uMsg, const WPARAM wParam, break; case WM_COMMAND: { - const unsigned short command = LOWORD(wParam); + const WORD command = LOWORD(wParam); switch (ID_GROUP(command)) { case IDG_MENU: HandleMainMenu(hWnd, command); @@ -344,8 +344,8 @@ LRESULT CALLBACK WndProc(const HWND hWnd, const UINT uMsg, const WPARAM wParam, /*IDM_RATE10*/L"Rate episode 10/10." }; - const unsigned short command = LOWORD(wParam); - const unsigned short group = ID_GROUP(command); + const WORD command = LOWORD(wParam); + const WORD group = ID_GROUP(command); const wchar_t* tip = {0}; if (group) { const wchar_t** const vTip = group==IDG_MENU? vTipMenu: vTipCtx; @@ -373,7 +373,7 @@ LRESULT CALLBACK WndProc(const HWND hWnd, const UINT uMsg, const WPARAM wParam, return 0; } -void HandleMainMenu(const HWND hWnd, unsigned short command) +void HandleMainMenu(const HWND hWnd, WORD command) { switch (command) { case IDM_FILE_EXIT: @@ -429,7 +429,7 @@ void HandleMainMenu(const HWND hWnd, unsigned short command) } } -void HandleContextMenu(const HWND, unsigned short command) +void HandleContextMenu(const HWND, WORD command) { int cNotFound = 0; @@ -556,7 +556,7 @@ INT_PTR CALLBACK AboutDlgProc(const HWND hWnd, const UINT uMsg, const WPARAM wPa void UpdateTheme() { if (!IsThemeActive) return; - const BOOL bThemeActive = IsThemeActive(); + const bool bThemeActive = IsThemeActive(); g_dlv->UpdateTheme(bThemeActive); g_elv->UpdateTheme(bThemeActive); } |