mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Changed const
This commit is contained in:
parent
f01a7abda1
commit
b25dee9fba
1 changed files with 3 additions and 2 deletions
|
|
@ -998,8 +998,9 @@ void AutoLock(bool minimize)
|
||||||
|
|
||||||
protected override void WndProc(ref Message m)
|
protected override void WndProc(ref Message m)
|
||||||
{
|
{
|
||||||
const int WM_SYSCOMMAND = '\x112';
|
const int WM_SYSCOMMAND = 0x112;
|
||||||
const int SC_MINIMIZE = '\xF020';
|
const int SC_MINIMIZE = 0xF020;
|
||||||
|
|
||||||
if (m.Msg == WM_SYSCOMMAND && m.WParam.ToInt32() == SC_MINIMIZE && ps.AutoLock == true && key != "")
|
if (m.Msg == WM_SYSCOMMAND && m.WParam.ToInt32() == SC_MINIMIZE && ps.AutoLock == true && key != "")
|
||||||
{
|
{
|
||||||
AutoLock(true);
|
AutoLock(true);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue