From 905feb8dd830696e43822d3aabcebd355c22dbfa Mon Sep 17 00:00:00 2001 From: Don HO Date: Thu, 16 Apr 2020 03:25:57 +0200 Subject: [PATCH] Fix vertical edge mode problem Fix the problem that edge is still displayed after disabling edge mode. --- PowerEditor/src/WinControls/Preference/preferenceDlg.cpp | 2 +- PowerEditor/src/menuCmdID.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp index b72915da..79b04637 100644 --- a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp +++ b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp @@ -820,7 +820,7 @@ INT_PTR CALLBACK MarginsDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lPa ::SendDlgItemMessage(_hSelf, IDC_RADIO_BGMODE, BM_SETCHECK, FALSE, 0); ::SendDlgItemMessage(_hSelf, IDC_RADIO_MULTILNMODE, BM_SETCHECK, FALSE, 0); svp._edgeMode = EDGE_NONE; - modeMsg = IDM_VIEW_EDGENONE; + modeMsg = NPPM_INTERNAL_EDGENONE; } ::EnableWindow(::GetDlgItem(_hSelf, IDC_RADIO_LNMODE), isChecked); ::EnableWindow(::GetDlgItem(_hSelf, IDC_RADIO_BGMODE), isChecked); diff --git a/PowerEditor/src/menuCmdID.h b/PowerEditor/src/menuCmdID.h index d16806e4..47ecfefd 100644 --- a/PowerEditor/src/menuCmdID.h +++ b/PowerEditor/src/menuCmdID.h @@ -290,7 +290,7 @@ #define IDM_VIEW_ALWAYSONTOP (IDM_VIEW + 34) #define IDM_VIEW_SYNSCROLLV (IDM_VIEW + 35) #define IDM_VIEW_SYNSCROLLH (IDM_VIEW + 36) - #define IDM_VIEW_EDGENONE (IDM_VIEW + 37) + //#define IDM_VIEW_EDGENONE (IDM_VIEW + 37) #define IDM_VIEW_DRAWTABBAR_CLOSEBOTTUN (IDM_VIEW + 38) #define IDM_VIEW_DRAWTABBAR_DBCLK2CLOSE (IDM_VIEW + 39) #define IDM_VIEW_REFRESHTABAR (IDM_VIEW + 40)