Add new items to top.
(This summarizes all changes to all files under Src, including Src\Languages.)
+2007-03-30 Kimmo
+ PATCH: [ 1690503 ] fix for bug 1659281 "WinMerge forgets monitor to use when th
+ Submitted by from Dan Pidcock
+ Src: MainFrm.cpp
+
2007-03-30 Gal
RFE: [ 1690346 ] Manual selection of syntax highlighting scheme
Src/Languages/*: Merge*.rc
wp.rcNormalPosition.top=theApp.GetProfileInt(_T("Settings"), _T("MainTop"),0);
wp.rcNormalPosition.right=theApp.GetProfileInt(_T("Settings"), _T("MainRight"),0);
wp.rcNormalPosition.bottom=theApp.GetProfileInt(_T("Settings"), _T("MainBottom"),0);
- wp.showCmd = nCmdShow;
+ if (nCmdShow != SW_MINIMIZE && theApp.GetProfileInt(_T("Settings"), _T("MainMax"), FALSE))
+ wp.showCmd = SW_MAXIMIZE;
+ else
+ wp.showCmd = nCmdShow;
CRect dsk_rc,rc(wp.rcNormalPosition);
dsk_rc.top = ::GetSystemMetrics(SM_YVIRTUALSCREEN);
dsk_rc.right = dsk_rc.left + ::GetSystemMetrics(SM_CXVIRTUALSCREEN);
dsk_rc.bottom = dsk_rc.top + ::GetSystemMetrics(SM_CYVIRTUALSCREEN);
- if (nCmdShow != SW_MINIMIZE && theApp.GetProfileInt(_T("Settings"), _T("MainMax"), FALSE))
- {
- CMDIFrameWnd::ActivateFrame(SW_MAXIMIZE);
- }
- else if (rc.Width() != 0 && rc.Height() != 0)
+ if (rc.Width() != 0 && rc.Height() != 0)
{
// Ensure top-left corner is on visible area,
// 20 points margin is added to prevent "lost" window