Fix toolbar not showing issue while launching Notepad++ from system tray

Fixes #2600, closes #2729
This commit is contained in:
SinghRajenM 2016-12-30 00:46:16 +05:30 committed by Don Ho
parent 73ee4426e4
commit 896d0ab695
1 changed files with 6 additions and 0 deletions

View File

@ -2886,6 +2886,9 @@ void Notepad_plus::command(int id)
{
NppGUI & nppGUI = const_cast<NppGUI &>((NppParameters::getInstance())->getNppGUI());
::ShowWindow(_pPublicInterface->getHSelf(), nppGUI._isMaximized?SW_MAXIMIZE:SW_SHOW);
// Send sizing info to make window fit (specially to show tool bar. Fixed issue #2600)
::SendMessage(_pPublicInterface->getHSelf(), WM_SIZE, 0, 0);
}
break;
@ -2907,6 +2910,9 @@ void Notepad_plus::command(int id)
{
NppGUI & nppGUI = const_cast<NppGUI &>((NppParameters::getInstance())->getNppGUI());
::ShowWindow(_pPublicInterface->getHSelf(), nppGUI._isMaximized?SW_MAXIMIZE:SW_SHOW);
// Send sizing info to make window fit (specially to show tool bar. Fixed issue #2600)
::SendMessage(_pPublicInterface->getHSelf(), WM_SIZE, 0, 0);
fileOpen();
}
break;