Ticket #1499: fz2224_restore.patch
File fz2224_restore.patch, 885 bytes (added by , 17 years ago) |
---|
-
MainFrm.cpp
old new 3614 3614 WINDOWPLACEMENT placement; 3615 3615 placement.length = sizeof(WINDOWPLACEMENT); 3616 3616 placement.rcNormalPosition = m_PosData.NormalRect; 3617 placement.showCmd = SW_RESTORE; 3617 if (m_bMaxBeforeTray) 3618 placement.showCmd = SW_SHOWMAXIMIZED; 3619 else 3620 placement.showCmd = SW_RESTORE; 3618 3621 SetWindowPlacement(&placement); 3619 3622 m_PosData.state = 0; 3620 3623 } … … 3633 3636 ShowWindow(SW_HIDE); 3634 3637 m_TrayIcon.AddIcon(); 3635 3638 m_TrayIcon.ShowIcon(); 3639 } 3640 else if (m_PosData.state) 3641 { 3642 WINDOWPLACEMENT placement; 3643 BOOL res=GetWindowPlacement(&placement); 3644 if (placement.showCmd==SW_MAXIMIZE || placement.showCmd==SW_SHOWMAXIMIZED) 3645 m_bMaxBeforeTray = true; 3646 else 3647 m_bMaxBeforeTray = false; 3636 3648 } 3637 3649 } 3638 3650 else if (nID == SC_MINIMIZETRAY)