Enhance GUI: make sizing arrows more coherent in Find dialog

Remove vertical sizing arrows from Find & Replace dialog.

fix #15099, close #15100
This commit is contained in:
ozone10 2024-05-06 16:47:43 +02:00 committed by Don Ho
parent c64d706871
commit eb627b0677
1 changed files with 49 additions and 0 deletions

View File

@ -1232,6 +1232,55 @@ intptr_t CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARA
return TRUE;
}
case WM_NCHITTEST:
{
LRESULT lrHitTest = ::DefWindowProc(_hSelf, message, wParam, lParam);
switch (lrHitTest)
{
case HTTOP:
{
lrHitTest = HTBORDER;
break;
}
case HTTOPLEFT:
{
lrHitTest = HTLEFT;
break;
}
case HTTOPRIGHT:
{
lrHitTest = HTRIGHT;
break;
}
case HTBOTTOM:
{
lrHitTest = HTBORDER;
break;
}
case HTBOTTOMLEFT:
{
lrHitTest = HTLEFT;
break;
}
case HTBOTTOMRIGHT:
{
lrHitTest = HTRIGHT;
break;
}
default:
return FALSE;
}
::SetWindowLongPtr(_hSelf, DWLP_MSGRESULT, lrHitTest);
return TRUE;
}
case WM_CTLCOLOREDIT:
{
return NppDarkMode::onCtlColorSofter(reinterpret_cast<HDC>(wParam));