mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-21 12:54:42 +02:00
Fix toolbar not showing issue while launching Notepad++ from system tray
Fixes #2600, closes #2729
This commit is contained in:
parent
73ee4426e4
commit
896d0ab695
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user