Changeset 938 for trunk/dll/comp.c
- Timestamp:
- Jan 21, 2008, 10:45:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/comp.c
r929 r938 50 50 17 Jan 08 SHL Change hide not selected button to 3 state 51 51 18 Jan 08 SHL Honor filters in actions 52 20 Jan 08 GKY Compare dialog now saves and restores size and position 52 53 53 54 ***********************************************************************/ … … 2081 2082 cmp->hwnd = hwnd; 2082 2083 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 } 2083 2097 SetCnrCols(hwndLeft, TRUE); 2084 2098 SetCnrCols(hwndRight, TRUE); … … 2990 3004 2991 3005 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 } 2992 3014 WinDismissDlg(hwnd, 0); 2993 3015 break; 2994 3016 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 } 2995 3025 WinDismissDlg(hwnd, 1); 2996 3026 break;
Note:
See TracChangeset
for help on using the changeset viewer.