diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 01b420d13a17..2d8c60b7f728 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -6699,7 +6699,7 @@ void Notepad_plus::notifyBufferChanged(Buffer * buffer, int mask) if (mask & (BufferChangeDirty|BufferChangeFilename)) { if (mask & BufferChangeFilename) - ::SendMessage(_pPublicInterface->getHSelf(), NPPM_INTERNAL_REFRESHTABAR, 0, 0); + ::SendMessage(_pPublicInterface->getHSelf(), WM_SIZE, 0, 0); checkDocState(); setTitle(); diff --git a/PowerEditor/src/NppBigSwitch.cpp b/PowerEditor/src/NppBigSwitch.cpp index b3cb5510a00d..57ee7d19563f 100644 --- a/PowerEditor/src/NppBigSwitch.cpp +++ b/PowerEditor/src/NppBigSwitch.cpp @@ -3894,13 +3894,6 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa } break; - case NPPM_INTERNAL_REFRESHTABAR: - { - ::InvalidateRect(_mainDocTab.getHSelf(), NULL, TRUE); - ::InvalidateRect(_subDocTab.getHSelf(), NULL, TRUE); - - break; - } case NPPM_INTERNAL_LOCKTABBAR: { bool isDrag = TabBarPlus::doDragNDropOrNot(); @@ -3960,7 +3953,7 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa ::SendMessage(_subDocTab.getHSelf(), WM_SETFONT, reinterpret_cast(hf), MAKELPARAM(TRUE, 0)); } - ::SendMessage(_pPublicInterface->getHSelf(), NPPM_INTERNAL_REFRESHTABAR, 0, 0); + ::SendMessage(_pPublicInterface->getHSelf(), WM_SIZE, 0, 0); _mainDocTab.refresh(); _subDocTab.refresh(); diff --git a/PowerEditor/src/NppCommands.cpp b/PowerEditor/src/NppCommands.cpp index 610d72f04755..b641c6a0daea 100644 --- a/PowerEditor/src/NppCommands.cpp +++ b/PowerEditor/src/NppCommands.cpp @@ -3991,7 +3991,7 @@ void Notepad_plus::command(int id) nmhdr._hdr.idFrom = reinterpret_cast(this); nmhdr._tabOrigin = _pDocTab->getCurrentTabIndex(); ::SendMessage(_pPublicInterface->getHSelf(), WM_NOTIFY, 0, reinterpret_cast(&nmhdr)); - ::SendMessage(_pPublicInterface->getHSelf(), NPPM_INTERNAL_REFRESHTABAR, 0, 0); + ::SendMessage(_pPublicInterface->getHSelf(), WM_SIZE, 0, 0); } break; diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index cf5479b898e2..13c4f4e3a15e 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -878,7 +878,7 @@ void Notepad_plus::doClose(BufferID id, int whichOne, bool doDeleteBackup) if (buffID == BUFFER_INVALID && fileFullPath.length() > 0) _lastRecentFileList.add(fileFullPath.c_str()); } - ::SendMessage(_pPublicInterface->getHSelf(), NPPM_INTERNAL_REFRESHTABAR, 0, 0); + ::SendMessage(_pPublicInterface->getHSelf(), WM_SIZE, 0, 0); if (NppParameters::getInstance().getNppGUI()._tabStatus & TAB_QUITONEMPTY) { diff --git a/PowerEditor/src/WinControls/TabBar/TabBar.cpp b/PowerEditor/src/WinControls/TabBar/TabBar.cpp index fd6357b6fd6d..8204e0676293 100644 --- a/PowerEditor/src/WinControls/TabBar/TabBar.cpp +++ b/PowerEditor/src/WinControls/TabBar/TabBar.cpp @@ -792,7 +792,7 @@ LRESULT TabBarPlus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPara if (_closeButtonZone.isHit(xPos, yPos, _currentHoverTabRect, _isVertical)) { _whichCloseClickDown = getTabIndexAt(xPos, yPos); - ::SendMessage(_hParent, NPPM_INTERNAL_REFRESHTABAR, 0, 0); + ::SendMessage(_hParent, WM_SIZE, 0, 0); return TRUE; } } @@ -802,7 +802,7 @@ LRESULT TabBarPlus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPara if (_pinButtonZone.isHit(xPos, yPos, _currentHoverTabRect, _isVertical)) { _whichPinClickDown = getTabIndexAt(xPos, yPos); - ::SendMessage(_hParent, NPPM_INTERNAL_REFRESHTABAR, 0, 0); + ::SendMessage(_hParent, WM_SIZE, 0, 0); return TRUE; } } diff --git a/PowerEditor/src/resource.h b/PowerEditor/src/resource.h index 0bd00d49a5e3..05d4483f81b1 100644 --- a/PowerEditor/src/resource.h +++ b/PowerEditor/src/resource.h @@ -714,7 +714,7 @@ #define NPPM_INTERNAL_DOCMODIFIEDBYREPLACEALL (NOTEPADPLUS_USER_INTERNAL + 79) #define NPPM_INTERNAL_DRAWTABBARPINBUTTON (NOTEPADPLUS_USER_INTERNAL + 80) #define NPPM_INTERNAL_DRAWTABBARCLOSEBUTTON (NOTEPADPLUS_USER_INTERNAL + 81) - #define NPPM_INTERNAL_REFRESHTABAR (NOTEPADPLUS_USER_INTERNAL + 82) + //#define NPPM_INTERNAL_REFRESHTABAR (NOTEPADPLUS_USER_INTERNAL + 82) #define NPPM_INTERNAL_REDUCETABBAR (NOTEPADPLUS_USER_INTERNAL + 83) #define NPPM_INTERNAL_LOCKTABBAR (NOTEPADPLUS_USER_INTERNAL + 84) #define NPPM_INTERNAL_DRAWINACIVETAB (NOTEPADPLUS_USER_INTERNAL + 85)