diff --git a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp index a8d33c608..949bde60a 100644 --- a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp @@ -1027,7 +1027,7 @@ void FindInFinderDlg::writeOptions() _options._dotMatchesNewline = isCheckedOrNot(IDREDOTMATCHNL_FIFOLDER); } -intptr_t CALLBACK FindInFinderDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM /*lParam*/) +intptr_t CALLBACK FindInFinderDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { @@ -1087,6 +1087,14 @@ intptr_t CALLBACK FindInFinderDlg::run_dlgProc(UINT message, WPARAM wParam, LPAR return TRUE; } + case WM_DPICHANGED: + { + DPIManagerV2::setDpiWP(wParam); + setPositionDpi(lParam); + + return TRUE; + } + case WM_COMMAND: { switch (LOWORD(wParam)) diff --git a/PowerEditor/src/ScintillaComponent/GoToLineDlg.cpp b/PowerEditor/src/ScintillaComponent/GoToLineDlg.cpp index 2737ebbba..0364dcb6b 100644 --- a/PowerEditor/src/ScintillaComponent/GoToLineDlg.cpp +++ b/PowerEditor/src/ScintillaComponent/GoToLineDlg.cpp @@ -18,7 +18,7 @@ #include "GoToLineDlg.h" -intptr_t CALLBACK GoToLineDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM) +intptr_t CALLBACK GoToLineDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { @@ -69,9 +69,17 @@ intptr_t CALLBACK GoToLineDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM) return TRUE; } + case WM_DPICHANGED: + { + DPIManagerV2::setDpiWP(wParam); + setPositionDpi(lParam); + + return TRUE; + } + case WM_COMMAND: { - switch (wParam) + switch (LOWORD(wParam)) { case IDCANCEL : // Close display(false); @@ -144,7 +152,7 @@ intptr_t CALLBACK GoToLineDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM) return FALSE; } -void GoToLineDlg::updateLinesNumbers() const +void GoToLineDlg::updateLinesNumbers() const { size_t current = 0; size_t limit = 0; diff --git a/PowerEditor/src/ScintillaComponent/columnEditor.cpp b/PowerEditor/src/ScintillaComponent/columnEditor.cpp index 76ceb318d..643c529bd 100644 --- a/PowerEditor/src/ScintillaComponent/columnEditor.cpp +++ b/PowerEditor/src/ScintillaComponent/columnEditor.cpp @@ -148,9 +148,17 @@ intptr_t CALLBACK ColumnEditorDlg::run_dlgProc(UINT message, WPARAM wParam, LPAR return TRUE; } + case WM_DPICHANGED: + { + DPIManagerV2::setDpiWP(wParam); + setPositionDpi(lParam); + + return TRUE; + } + case WM_COMMAND: { - switch (wParam) + switch (LOWORD(wParam)) { case IDCANCEL : // Close display(false); diff --git a/PowerEditor/src/WinControls/FindCharsInRange/FindCharsInRange.cpp b/PowerEditor/src/WinControls/FindCharsInRange/FindCharsInRange.cpp index ceb353f03..0bd4c12b6 100644 --- a/PowerEditor/src/WinControls/FindCharsInRange/FindCharsInRange.cpp +++ b/PowerEditor/src/WinControls/FindCharsInRange/FindCharsInRange.cpp @@ -95,9 +95,17 @@ intptr_t CALLBACK FindCharsInRangeDlg::run_dlgProc(UINT message, WPARAM wParam, return TRUE; } + case WM_DPICHANGED: + { + DPIManagerV2::setDpiWP(wParam); + setPositionDpi(lParam); + + return TRUE; + } + case WM_COMMAND: { - switch (wParam) + switch (LOWORD(wParam)) { case IDC_NONASCCI_RADIO: case IDC_ASCCI_RADIO: diff --git a/PowerEditor/src/WinControls/ProjectPanel/ProjectPanel.cpp b/PowerEditor/src/WinControls/ProjectPanel/ProjectPanel.cpp index 60e7316c6..63ed49f59 100644 --- a/PowerEditor/src/WinControls/ProjectPanel/ProjectPanel.cpp +++ b/PowerEditor/src/WinControls/ProjectPanel/ProjectPanel.cpp @@ -1330,7 +1330,7 @@ void ProjectPanel::addFilesFromDirectory(HTREEITEM hTreeItem) } } -intptr_t CALLBACK FileRelocalizerDlg::run_dlgProc(UINT Message, WPARAM wParam, LPARAM) +intptr_t CALLBACK FileRelocalizerDlg::run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam) { switch (Message) { @@ -1370,9 +1370,17 @@ intptr_t CALLBACK FileRelocalizerDlg::run_dlgProc(UINT Message, WPARAM wParam, L break; } + case WM_DPICHANGED: + { + DPIManagerV2::setDpiWP(wParam); + setPositionDpi(lParam); + + return TRUE; + } + case WM_COMMAND: { - switch (wParam) + switch (LOWORD(wParam)) { case IDOK : {