- Timestamp:
- Aug 29, 2008, 4:03:23 PM (17 years ago)
- Location:
- trunk/dll
- Files:
-
- 2 edited
-
mainwnd.c (modified) (3 diffs)
-
mainwnd2.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/mainwnd.c
r1125 r1128 67 67 19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory 68 68 26 Aug 08 GKY Require unique ID plus text and help strings for all tools save toolbar on button delete 69 27 Aug 08 JBS Ticket 259: Support saving/restoring toolbars with states 70 29 Aug 08 JBS Ticket 259: Support saving/restoring target directories with states (except the shutdown state) 69 71 70 72 ***********************************************************************/ … … 2839 2841 sprintf(szPrefix, "%s.", pszStateName); 2840 2842 2841 sprintf(szKey, "%sToolbar", szPrefix); 2842 PrfWriteProfileString(fmprof, FM3Str, szKey, lasttoolbar); 2843 if (*lasttoolbar) { 2844 sprintf(szKey, "%sToolbar", szPrefix); 2845 PrfWriteProfileString(fmprof, FM3Str, szKey, lasttoolbar); 2846 } 2847 2848 if (*targetdir && !fIsShutDownState) { 2849 sprintf(szKey, "%sTargetDir", szPrefix); 2850 PrfWriteProfileString(fmprof, FM3Str, szKey, targetdir); 2851 } 2843 2852 2844 2853 henum = WinBeginEnumWindows(hwndClient); … … 3078 3087 load_tools(NULL); 3079 3088 PostMsg(hwndToolback, UM_SETUP2, MPVOID, MPVOID); 3089 } 3090 size = (ULONG)0; 3091 sprintf(szKey, "%sTargetDir", szPrefix); 3092 if (PrfQueryProfileSize(fmprof, FM3Str, szKey, &size) && size) 3093 { 3094 PrfQueryProfileData(fmprof, FM3Str, szKey, targetdir, &size); 3095 PrfWriteProfileString(fmprof, FM3Str, "TargetDir", targetdir); 3096 SetTargetDir(NULL, TRUE); 3080 3097 } 3081 3098 size = sizeof(SWP); -
trunk/dll/mainwnd2.c
r1125 r1128 24 24 14 Feb 08 SHL Rework to support settings menu conditional cascade 25 25 29 Feb 08 GKY Use xfree where appropriate 26 27 Aug 08 JBS Ticket 259: Support saving/restoring toolbars with states 26 27 27 28 ***********************************************************************/ … … 702 703 strcpy(lasttoolbar, 703 704 quicktool[SHORT1FROMMP(mp1) - IDM_QUICKTOOLSTART]); 704 PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", lasttoolbar); 705 // PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", lasttoolbar); 706 PrfWriteProfileString(fmprof, appname, "LastToolbar", lasttoolbar); 705 707 } 706 708 PostMsg(hwndToolback, UM_SETUP2, MPVOID, MPVOID);
Note:
See TracChangeset
for help on using the changeset viewer.
