mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 13:54:54 +02:00
Add dpi support to dialogs
- FindInFinder - GoToLine - ColumnEditor - FindCharsInRange - ProjectPanel FileRelocalizerDlg ref #14959 Close #15020
This commit is contained in:
parent
b476c67447
commit
4031339c58
@ -1027,7 +1027,7 @@ void FindInFinderDlg::writeOptions()
|
|||||||
_options._dotMatchesNewline = isCheckedOrNot(IDREDOTMATCHNL_FIFOLDER);
|
_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)
|
switch (message)
|
||||||
{
|
{
|
||||||
@ -1087,6 +1087,14 @@ intptr_t CALLBACK FindInFinderDlg::run_dlgProc(UINT message, WPARAM wParam, LPAR
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case WM_DPICHANGED:
|
||||||
|
{
|
||||||
|
DPIManagerV2::setDpiWP(wParam);
|
||||||
|
setPositionDpi(lParam);
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
{
|
{
|
||||||
switch (LOWORD(wParam))
|
switch (LOWORD(wParam))
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#include "GoToLineDlg.h"
|
#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)
|
switch (message)
|
||||||
{
|
{
|
||||||
@ -69,9 +69,17 @@ intptr_t CALLBACK GoToLineDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case WM_DPICHANGED:
|
||||||
|
{
|
||||||
|
DPIManagerV2::setDpiWP(wParam);
|
||||||
|
setPositionDpi(lParam);
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
{
|
{
|
||||||
switch (wParam)
|
switch (LOWORD(wParam))
|
||||||
{
|
{
|
||||||
case IDCANCEL : // Close
|
case IDCANCEL : // Close
|
||||||
display(false);
|
display(false);
|
||||||
|
@ -148,9 +148,17 @@ intptr_t CALLBACK ColumnEditorDlg::run_dlgProc(UINT message, WPARAM wParam, LPAR
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case WM_DPICHANGED:
|
||||||
|
{
|
||||||
|
DPIManagerV2::setDpiWP(wParam);
|
||||||
|
setPositionDpi(lParam);
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
{
|
{
|
||||||
switch (wParam)
|
switch (LOWORD(wParam))
|
||||||
{
|
{
|
||||||
case IDCANCEL : // Close
|
case IDCANCEL : // Close
|
||||||
display(false);
|
display(false);
|
||||||
|
@ -95,9 +95,17 @@ intptr_t CALLBACK FindCharsInRangeDlg::run_dlgProc(UINT message, WPARAM wParam,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case WM_DPICHANGED:
|
||||||
|
{
|
||||||
|
DPIManagerV2::setDpiWP(wParam);
|
||||||
|
setPositionDpi(lParam);
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
{
|
{
|
||||||
switch (wParam)
|
switch (LOWORD(wParam))
|
||||||
{
|
{
|
||||||
case IDC_NONASCCI_RADIO:
|
case IDC_NONASCCI_RADIO:
|
||||||
case IDC_ASCCI_RADIO:
|
case IDC_ASCCI_RADIO:
|
||||||
|
@ -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)
|
switch (Message)
|
||||||
{
|
{
|
||||||
@ -1370,9 +1370,17 @@ intptr_t CALLBACK FileRelocalizerDlg::run_dlgProc(UINT Message, WPARAM wParam, L
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case WM_DPICHANGED:
|
||||||
|
{
|
||||||
|
DPIManagerV2::setDpiWP(wParam);
|
||||||
|
setPositionDpi(lParam);
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
{
|
{
|
||||||
switch (wParam)
|
switch (LOWORD(wParam))
|
||||||
{
|
{
|
||||||
case IDOK :
|
case IDOK :
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user