mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 22:04:55 +02:00
parent
871c5abe5a
commit
5f3225b825
@ -54,20 +54,18 @@ void ShortcutMapper::initTabs() {
|
||||
|
||||
TabCtrl_SetCurSel(_hTabCtrl, int(_currentState));
|
||||
|
||||
//force alignment to babygrid on higher dpi
|
||||
if (NppParameters::getInstance()->_dpiManager.scaleY(30) > 30)
|
||||
{
|
||||
WINDOWPLACEMENT wp;
|
||||
wp.length = sizeof(wp);
|
||||
// force alignment to babygrid
|
||||
RECT rcTab;
|
||||
WINDOWPLACEMENT 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 += offset;
|
||||
wp.rcNormalPosition.top += offset + 1;
|
||||
wp.rcNormalPosition.bottom = NppParameters::getInstance()->_dpiManager.scaleY(30);
|
||||
wp.rcNormalPosition.top = wp.rcNormalPosition.bottom - rcTab.bottom;
|
||||
|
||||
::SetWindowPlacement(hTab, &wp);
|
||||
}
|
||||
::SetWindowPlacement(hTab, &wp);
|
||||
}
|
||||
|
||||
void ShortcutMapper::getClientRect(RECT & rc) const
|
||||
|
@ -86,7 +86,7 @@ private:
|
||||
std::vector<size_t> _lastHomeRow;
|
||||
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 . . .");
|
||||
|
||||
std::vector<HFONT> _hGridFonts;
|
||||
|
Loading…
x
Reference in New Issue
Block a user