Editor text now is hidden in windows thumbnail previews

This commit is contained in:
Alexander 2019-12-29 00:26:58 +02:00
parent a021398788
commit 392f5d8a3b
No known key found for this signature in database
GPG key ID: 1F83313BFEB322E9

View file

@ -34,12 +34,17 @@ protected override void WndProc(ref Message m)
{
const int WM_SYSCOMMAND = 0x112;
const int SC_MINIMIZE = 0xF020;
const int SC_RESTORE = 0xF120;
try
{
if (m.Msg == WM_SYSCOMMAND & m.WParam.ToInt32() == SC_MINIMIZE & settings.autoLock & !string.IsNullOrEmpty(PublicVar.password.Get()))
if (m.Msg == WM_SYSCOMMAND & m.WParam.ToInt32() == SC_MINIMIZE)
{
richTextBox.Visible = false;
}
if (m.Msg == WM_SYSCOMMAND & m.WParam.ToInt32() == SC_RESTORE & !fileLockedPanel.Visible)
{
richTextBox.Visible = true;
}
}
catch (OverflowException)
{