diff options
author | John Ankarström <john@ankarstrom.se> | 2022-09-07 23:33:08 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-09-07 23:33:08 +0200 |
commit | b5917be252caf9d38ae9466352c4176ef25732e3 (patch) | |
tree | 8eee2398b84cd533999a6d6f7539131daef5acfd /c/drag.cpp | |
parent | ac7d676a1c457f71f1d3ae17d74699dd95c9c985 (diff) | |
download | EpisodeBrowser-b5917be252caf9d38ae9466352c4176ef25732e3.tar.gz |
Simplify Err message format.
Diffstat (limited to 'c/drag.cpp')
-rw-r--r-- | c/drag.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -25,7 +25,7 @@ bool Dragger::HandleLButtonDown() { POINT pt; if (!GetRelativeCursorPos(parent.hWnd, &pt)) - throw Err(WINDOWS, L"Mouse cursor position could not be retrieved: %s."); + throw Err(WINDOWS, L"Mouse cursor position could not be retrieved"); if (!InDragArea(pt.x, pt.y)) return false; if (IsDouble(GetMessageTime(), pt)) { @@ -41,7 +41,7 @@ bool Dragger::HandleSetCursor() { POINT pt; if (!GetRelativeCursorPos(parent.hWnd, &pt)) - throw Err(WINDOWS, L"Mouse cursor position could not be retrieved: %s."); + throw Err(WINDOWS, L"Mouse cursor position could not be retrieved"); extern HCURSOR g_hcSizeNs; bool r = true; @@ -63,7 +63,7 @@ bool DlvDragger::InDragArea(const int x, const int y) const { RECT rrDlv; if (!GetRelativeRect(parent.dlv.hWnd, &rrDlv)) - throw Err(WINDOWS, L"Data list view rectangle could not be retrieved: %s."); + throw Err(WINDOWS, L"Data list view rectangle could not be retrieved"); const int pad = EBIsThemeActive()? Dpi(6): 0; const int extra = EBIsThemeActive()? 0: Dpi(2); @@ -76,7 +76,7 @@ void DlvDragger::Drag(const int, const int y) const { RECT rrDlv; if (!GetRelativeRect(parent.dlv.hWnd, &rrDlv)) - throw Err(WINDOWS, L"Data list view rectangle could not be retrieved: %s."); + throw Err(WINDOWS, L"Data list view rectangle could not be retrieved"); if (y < Dpi(50) || y > rrDlv.bottom-Dpi(20)) return; |