Fixed bug when editor was invisible after window maximized

This commit is contained in:
Alexander 2020-08-08 12:28:09 +03:00
parent 1cc8332458
commit ffb2016e48
No known key found for this signature in database
GPG key ID: 1F83313BFEB322E9

View file

@ -34,6 +34,7 @@ protected override void WndProc(ref Message m)
{ {
const int WM_SYSCOMMAND = 0x112; const int WM_SYSCOMMAND = 0x112;
const int SC_MINIMIZE = 0xF020; const int SC_MINIMIZE = 0xF020;
const int SC_MAXIMIZE = 0xF030;
const int SC_RESTORE = 0xF120; const int SC_RESTORE = 0xF120;
try try
{ {
@ -41,7 +42,7 @@ protected override void WndProc(ref Message m)
{ {
richTextBox.Visible = false; 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; richTextBox.Visible = true;
} }