mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Fixed bug when editor was invisible after window maximized
This commit is contained in:
parent
1cc8332458
commit
ffb2016e48
1 changed files with 2 additions and 1 deletions
|
|
@ -34,6 +34,7 @@ protected override void WndProc(ref Message m)
|
|||
{
|
||||
const int WM_SYSCOMMAND = 0x112;
|
||||
const int SC_MINIMIZE = 0xF020;
|
||||
const int SC_MAXIMIZE = 0xF030;
|
||||
const int SC_RESTORE = 0xF120;
|
||||
try
|
||||
{
|
||||
|
|
@ -41,7 +42,7 @@ protected override void WndProc(ref Message m)
|
|||
{
|
||||
richTextBox.Visible = false;
|
||||
}
|
||||
if (m.Msg == WM_SYSCOMMAND & m.WParam.ToInt32() == SC_RESTORE & !fileLockedPanel.Visible)
|
||||
if (m.Msg == WM_SYSCOMMAND & m.WParam.ToInt32() == SC_RESTORE | m.WParam.ToInt32() == SC_MAXIMIZE & !fileLockedPanel.Visible)
|
||||
{
|
||||
richTextBox.Visible = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue