mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Editor text now is hidden in windows thumbnail previews
This commit is contained in:
parent
a021398788
commit
392f5d8a3b
1 changed files with 6 additions and 1 deletions
|
|
@ -34,12 +34,17 @@ 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_RESTORE = 0xF120;
|
||||||
try
|
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;
|
richTextBox.Visible = false;
|
||||||
}
|
}
|
||||||
|
if (m.Msg == WM_SYSCOMMAND & m.WParam.ToInt32() == SC_RESTORE & !fileLockedPanel.Visible)
|
||||||
|
{
|
||||||
|
richTextBox.Visible = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (OverflowException)
|
catch (OverflowException)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue