summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/richutil.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-07 23:14:08 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-07 23:14:08 +0300
commit4dde6e6a9b6176050f31df13e91d248b5d7c62b2 (patch)
treef449a243e576cec7968efcca842a7c4db8b6bd85 /plugins/Scriver/src/richutil.cpp
parent0bc0ec3803c1d95798e551ec7c1d431d2ac98075 (diff)
code cleaning
Diffstat (limited to 'plugins/Scriver/src/richutil.cpp')
-rw-r--r--plugins/Scriver/src/richutil.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Scriver/src/richutil.cpp b/plugins/Scriver/src/richutil.cpp
index 702e875320..c9a640a102 100644
--- a/plugins/Scriver/src/richutil.cpp
+++ b/plugins/Scriver/src/richutil.cpp
@@ -84,7 +84,7 @@ int RichUtil_SubClass(HWND hwndEdit)
static LRESULT CALLBACK RichUtil_Proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
- TRichUtil *ru = NULL, tru;
+ TRichUtil *ru = nullptr, tru;
int idx;
LRESULT ret;
@@ -132,7 +132,7 @@ static LRESULT CALLBACK RichUtil_Proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
nState = ETS_READONLY;
else nState = ETS_NORMAL;
- DrawThemeBackground(hTheme, hdc, EP_EDITTEXT, nState, &rcBorder, NULL);
+ DrawThemeBackground(hTheme, hdc, EP_EDITTEXT, nState, &rcBorder, nullptr);
CloseThemeData(hTheme);
ReleaseDC(hwnd, hdc);
return 0;
@@ -170,7 +170,7 @@ static LRESULT CALLBACK RichUtil_Proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
return ret;
case WM_ENABLE:
- RedrawWindow(hwnd, NULL, NULL, RDW_INVALIDATE | RDW_NOCHILDREN | RDW_UPDATENOW | RDW_FRAME);
+ RedrawWindow(hwnd, nullptr, nullptr, RDW_INVALIDATE | RDW_NOCHILDREN | RDW_UPDATENOW | RDW_FRAME);
break;
case WM_GETDLGCODE:
@@ -196,6 +196,6 @@ static void RichUtil_ClearUglyBorder(TRichUtil *ru)
}
// Redraw window since the style may have changed
- SetWindowPos(ru->hwnd, NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED);
- RedrawWindow(ru->hwnd, NULL, NULL, RDW_INVALIDATE | RDW_NOCHILDREN | RDW_UPDATENOW | RDW_FRAME);
+ SetWindowPos(ru->hwnd, nullptr, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED);
+ RedrawWindow(ru->hwnd, nullptr, nullptr, RDW_INVALIDATE | RDW_NOCHILDREN | RDW_UPDATENOW | RDW_FRAME);
}