Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Commit c298ae8

Browse files
committedMay 15, 2012
Clean up a bit of code.
1 parent 30d1913 commit c298ae8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎SuperPutty/frmSuperPutty.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -914,9 +914,8 @@ private bool WndProcForFocus(ref Message m)
914914
const int WM_NCACTIVATE = 0x0086;
915915
const int WM_SYSCOMMAND = 0x0112;
916916

917-
const int SC_MINIMIZE = 0xF030;
917+
const int SC_MAXIMIZE = 0xF030;
918918
const int SC_RESTORE = 0xF120;
919-
const int SC_DRAGMOVE = 0xF012;
920919

921920
switch (m.Msg)
922921
{
@@ -944,11 +943,12 @@ private bool WndProcForFocus(ref Message m)
944943
m.Result = (IntPtr)1;
945944
return false;
946945
case WM_SYSCOMMAND:
946+
// Check for maximizing and restoring from maxed.
947947
// Removing the last 4 bits. This is necessary because
948948
// maximizing by double click gives you 0xF032, not 0xF030.
949949
switch ((int)m.WParam & 0xFFF0)
950950
{
951-
case SC_MINIMIZE:
951+
case SC_MAXIMIZE:
952952
case SC_RESTORE:
953953
FocusCurrentTab();
954954
break;

0 commit comments

Comments
 (0)