From ffc4f20c0c1bf41f2fc91670519534e10885a22b Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Mon, 22 Jun 2020 02:09:06 +0200 Subject: [PATCH] + cln: code cleanup --- src/Notepad3.c | 29 +---------------------------- src/Notepad3.vcxproj | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 30 deletions(-) diff --git a/src/Notepad3.c b/src/Notepad3.c index 790a04ef4..881a0efaf 100644 --- a/src/Notepad3.c +++ b/src/Notepad3.c @@ -1538,33 +1538,6 @@ LRESULT CALLBACK MainWndProc(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam) { switch(umsg) { - // Quickly handle painting and sizing messages, found in ScintillaWin.cxx - // Cool idea, don't know if this has any effect... ;-) - case WM_MOVE: - case WM_MOUSEACTIVATE: - case WM_NCHITTEST: - case WM_NCCALCSIZE: - case WM_NCPAINT: - case WM_PAINT: - case WM_ERASEBKGND: - case WM_NCMOUSEMOVE: - case WM_NCLBUTTONDOWN: - case WM_WINDOWPOSCHANGING: - case WM_WINDOWPOSCHANGED: - case WM_TIMER: - case WM_KILLFOCUS: - case WM_ENTERIDLE: - return DefWindowProc(hwnd, umsg, wParam, lParam); - - // never send - case WM_SYSKEYDOWN: - case WM_SYSKEYUP: - case WM_KEYDOWN: - case WM_KEYUP: - return DefWindowProc(hwnd, umsg, wParam, lParam); - - // ------------------------------------------------- - case WM_CREATE: return MsgCreate(hwnd, wParam, lParam); @@ -1719,7 +1692,7 @@ LRESULT CALLBACK MainWndProc(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam) } return DefWindowProc(hwnd, umsg, wParam, lParam); } - return 0; // 0 = swallow message + return 0; } diff --git a/src/Notepad3.vcxproj b/src/Notepad3.vcxproj index d3e005072..b52cac74d 100644 --- a/src/Notepad3.vcxproj +++ b/src/Notepad3.vcxproj @@ -434,7 +434,12 @@ - + + true + true + true + true + @@ -545,7 +550,12 @@ - + + true + true + true + true +