mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-26 07:15:21 +02:00
parent
871c5abe5a
commit
5f3225b825
@ -54,20 +54,18 @@ void ShortcutMapper::initTabs() {
|
|||||||
|
|
||||||
TabCtrl_SetCurSel(_hTabCtrl, int(_currentState));
|
TabCtrl_SetCurSel(_hTabCtrl, int(_currentState));
|
||||||
|
|
||||||
//force alignment to babygrid on higher dpi
|
// force alignment to babygrid
|
||||||
if (NppParameters::getInstance()->_dpiManager.scaleY(30) > 30)
|
RECT rcTab;
|
||||||
{
|
WINDOWPLACEMENT wp;
|
||||||
WINDOWPLACEMENT wp;
|
wp.length = sizeof(wp);
|
||||||
wp.length = sizeof(wp);
|
|
||||||
|
|
||||||
::GetWindowPlacement(hTab, &wp);
|
::GetWindowPlacement(hTab, &wp);
|
||||||
|
::SendMessage(hTab, TCM_GETITEMRECT, 0, reinterpret_cast<LPARAM>(&rcTab));
|
||||||
|
|
||||||
const int offset = NppParameters::getInstance()->_dpiManager.scaleY(30) - wp.rcNormalPosition.bottom;
|
wp.rcNormalPosition.bottom = NppParameters::getInstance()->_dpiManager.scaleY(30);
|
||||||
wp.rcNormalPosition.bottom += offset;
|
wp.rcNormalPosition.top = wp.rcNormalPosition.bottom - rcTab.bottom;
|
||||||
wp.rcNormalPosition.top += offset + 1;
|
|
||||||
|
|
||||||
::SetWindowPlacement(hTab, &wp);
|
::SetWindowPlacement(hTab, &wp);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShortcutMapper::getClientRect(RECT & rc) const
|
void ShortcutMapper::getClientRect(RECT & rc) const
|
||||||
|
@ -86,7 +86,7 @@ private:
|
|||||||
std::vector<size_t> _lastHomeRow;
|
std::vector<size_t> _lastHomeRow;
|
||||||
std::vector<size_t> _lastCursorRow;
|
std::vector<size_t> _lastCursorRow;
|
||||||
|
|
||||||
const generic_string _defaultInfo = TEXT("No schortcut conflicts for this item.");
|
const generic_string _defaultInfo = TEXT("No shortcut conflicts for this item.");
|
||||||
const generic_string _assignInfo = TEXT("No conflicts . . .");
|
const generic_string _assignInfo = TEXT("No conflicts . . .");
|
||||||
|
|
||||||
std::vector<HFONT> _hGridFonts;
|
std::vector<HFONT> _hGridFonts;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user