Fix status bar display bug in high dpi environment

Fixes #1536, fixes #356, fixes #366, fixes #539, fixes #1447
This commit is contained in:
Don HO 2016-05-16 18:19:42 +02:00
parent 7b596fa488
commit 7e299fdd31

View File

@ -364,11 +364,11 @@ LRESULT Notepad_plus::init(HWND hwnd)
//--Status Bar Section--// //--Status Bar Section--//
bool willBeShown = nppGUI._statusBarShow; bool willBeShown = nppGUI._statusBarShow;
_statusBar.init(_pPublicInterface->getHinst(), hwnd, 6); _statusBar.init(_pPublicInterface->getHinst(), hwnd, 6);
_statusBar.setPartWidth(STATUSBAR_DOC_SIZE, 200); _statusBar.setPartWidth(STATUSBAR_DOC_SIZE, NppParameters::getInstance()->_dpiManager.scaleX(200));
_statusBar.setPartWidth(STATUSBAR_CUR_POS, 260); _statusBar.setPartWidth(STATUSBAR_CUR_POS, NppParameters::getInstance()->_dpiManager.scaleX(260));
_statusBar.setPartWidth(STATUSBAR_EOF_FORMAT, 110); _statusBar.setPartWidth(STATUSBAR_EOF_FORMAT, NppParameters::getInstance()->_dpiManager.scaleX(110));
_statusBar.setPartWidth(STATUSBAR_UNICODE_TYPE, 120); _statusBar.setPartWidth(STATUSBAR_UNICODE_TYPE, NppParameters::getInstance()->_dpiManager.scaleX(120));
_statusBar.setPartWidth(STATUSBAR_TYPING_MODE, 30); _statusBar.setPartWidth(STATUSBAR_TYPING_MODE, NppParameters::getInstance()->_dpiManager.scaleX(30));
_statusBar.display(willBeShown); _statusBar.display(willBeShown);
_pMainWindow = &_mainDocTab; _pMainWindow = &_mainDocTab;