aboutsummaryrefslogtreecommitdiff
path: root/c/layout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/layout.cpp')
-rw-r--r--c/layout.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/c/layout.cpp b/c/layout.cpp
index cbfb831..5fe5da4 100644
--- a/c/layout.cpp
+++ b/c/layout.cpp
@@ -16,16 +16,16 @@ void UpdateLayout(int w, int h)
RECT rc, rrStatus;
if (w && h) rc = {0, 0, w, h};
- else require(GetClientRect(g_hWnd, &rc));
- require(GetRelativeRect(g_hWndStatus, &rrStatus));
+ else Require(GetClientRect(g_hWnd, &rc));
+ Require(GetRelativeRect(g_hWndStatus, &rrStatus));
SendMessage(g_hWnd, WM_SETREDRAW, FALSE, 0);
/* Resize list views. */
const long pad = EBIsThemeActive()? Dpi(6): 0; /* Add padding in modern themes. */
const long cyDlv = rrStatus.top-g_dlv->Height()-pad;
- require(SetWindowRect(g_dlv->hWnd, pad, cyDlv, rc.right-pad, rrStatus.top-pad));
- require(SetWindowRect(g_elv->hWnd, pad, pad, rc.right-pad, cyDlv-pad));
+ Require(SetWindowRect(g_dlv->hWnd, pad, cyDlv, rc.right-pad, rrStatus.top-pad));
+ Require(SetWindowRect(g_elv->hWnd, pad, pad, rc.right-pad, cyDlv-pad));
g_dlv->ResizeColumns(rc.right-pad-pad);
g_elv->ResizeColumns(rc.right-pad-pad);
@@ -41,7 +41,7 @@ void UpdateLayout(int w, int h)
bool DlvDragger::InDragArea(const int x, const int y)
{
RECT rrDlv;
- require(GetRelativeRect(g_dlv->hWnd, &rrDlv));
+ Require(GetRelativeRect(g_dlv->hWnd, &rrDlv));
const int pad = EBIsThemeActive()? Dpi(6): 0;
const int extra = EBIsThemeActive()? 0: Dpi(2);
@@ -53,7 +53,7 @@ bool DlvDragger::InDragArea(const int x, const int y)
void DlvDragger::Drag(const int, const int y)
{
RECT rrDlv;
- require(GetRelativeRect(g_dlv->hWnd, &rrDlv));
+ Require(GetRelativeRect(g_dlv->hWnd, &rrDlv));
if (y < Dpi(50) || y > rrDlv.bottom-Dpi(20)) return;