Changeset 938 for trunk/dll/comp.c


Ignore:
Timestamp:
Jan 21, 2008, 10:45:57 PM (18 years ago)
Author:
Gregg Young
Message:

Compare directory dialog saves and restores size and position (Ticket 49)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/comp.c

    r929 r938  
    5050  17 Jan 08 SHL Change hide not selected button to 3 state
    5151  18 Jan 08 SHL Honor filters in actions
     52  20 Jan 08 GKY Compare dialog now saves and restores size and position
    5253
    5354***********************************************************************/
     
    20812082      cmp->hwnd = hwnd;
    20822083      WinSetWindowPtr(hwnd, QWL_USER, (PVOID)cmp);
     2084      {
     2085        SWP swp;
     2086        ULONG size = sizeof(SWP);
     2087
     2088        PrfQueryProfileData(fmprof, FM3Str, "CompDir.Position", (PVOID) &swp, &size);
     2089        WinSetWindowPos(hwnd,
     2090                        HWND_TOP,
     2091                        swp.x,
     2092                        swp.y,
     2093                        swp.cx,
     2094                        swp.cy,
     2095                        swp.fl);
     2096      }
    20832097      SetCnrCols(hwndLeft, TRUE);
    20842098      SetCnrCols(hwndRight, TRUE);
     
    29903004
    29913005    case DID_OK:
     3006      {
     3007        SWP swp;
     3008        ULONG size = sizeof(SWP);
     3009
     3010        WinQueryWindowPos(hwnd, &swp);
     3011        PrfWriteProfileData(fmprof, FM3Str, "CompDir.Position", (PVOID) &swp,
     3012                            size);
     3013      }
    29923014      WinDismissDlg(hwnd, 0);
    29933015      break;
    29943016    case DID_CANCEL:
     3017      {
     3018        SWP swp;
     3019        ULONG size = sizeof(SWP);
     3020
     3021        WinQueryWindowPos(hwnd, &swp);
     3022        PrfWriteProfileData(fmprof, FM3Str, "CompDir.Position", (PVOID) &swp,
     3023                            size);
     3024      }
    29953025      WinDismissDlg(hwnd, 1);
    29963026      break;
Note: See TracChangeset for help on using the changeset viewer.