diff options
author | George Hazan <ghazan@miranda.im> | 2020-05-05 19:30:12 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-05-05 19:30:12 +0300 |
commit | 63c39e478f065ef664c7023e67391372ac859538 (patch) | |
tree | f28c1c5b9de2832dbc4a6abe02eb8aff321b71b0 /plugins/NewStory/src/history_control.cpp | |
parent | 01e2e633ef9c613464b84d8065d103d1112d4156 (diff) |
another option for drawing window edge
Diffstat (limited to 'plugins/NewStory/src/history_control.cpp')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index e851c0b768..f19f4565db 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -741,7 +741,6 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM HDC hdc = CreateCompatibleDC(hdcWindow); HBITMAP hbmSave = (HBITMAP)SelectObject(hdc, CreateCompatibleBitmap(hdcWindow, rc.right - rc.left, rc.bottom - rc.top)); - GetClientRect(hwnd, &rc); int height = rc.bottom - rc.top; int width = rc.right - rc.left; int top = data->scrollTopPixel; @@ -759,10 +758,8 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM DeleteObject(hbr); } - GetWindowRect(hwnd, &rc); - rc.right -= rc.left; rc.left = 0; - rc.bottom -= rc.top; rc.top = 0; - DrawEdge(hdc, &rc, BDR_SUNKENOUTER, BF_RECT); + if (g_plugin.bDrawEdge) + DrawEdge(hdc, &rc, BDR_SUNKENOUTER, BF_RECT); BitBlt(hdcWindow, 0, 0, rc.right, rc.bottom, hdc, 0, 0, SRCCOPY); DeleteObject(SelectObject(hdc, hbmSave)); |