Changeset 1505 for trunk/dll/notebook.c
- Timestamp:
- Apr 12, 2010, 12:29:56 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/notebook.c
r1498 r1505 1437 1437 &fShowDriveLabelInTree, sizeof(BOOL)); 1438 1438 fVTreeOpensWPS = WinQueryButtonCheckstate(hwnd, CFGT_VTREEOPENSWPS); 1439 PrfWriteProfileData(fmprof, (CHAR *) (CHAR *)FM3Str, "VTreeOpensWPS", &fVTreeOpensWPS,1439 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "VTreeOpensWPS", &fVTreeOpensWPS, 1440 1440 sizeof(BOOL)); 1441 1441 fCollapseFirst = WinQueryButtonCheckstate(hwnd, CFGT_COLLAPSEFIRST); … … 1945 1945 if (fOldSyncUpdates != fSyncUpdates) { 1946 1946 fSyncUpdates = fOldSyncUpdates; 1947 if (hwndMain && !strcmp(realappname, (CHAR *)FM3Str)) {1947 if (hwndMain && !strcmp(realappname, FM3Str)) { 1948 1948 // Save state and restore to refresh windows with new settings 1949 1949 if (SaveDirCnrState(hwndMain, PCSZ_FM2TEMPTEXT) > 0) { … … 2100 2100 2101 2101 case WM_CLOSE: 2102 if (hwndMain && !strcmp(realappname, (CHAR *)FM3Str)) {2102 if (hwndMain && !strcmp(realappname, FM3Str)) { 2103 2103 if (fFreeTree != WinQueryButtonCheckstate(hwnd, CFGM_FREETREE)) 2104 2104 PostMsg(hwndMain, WM_COMMAND, MPFROM2SHORT(IDM_FREETREE, 0), MPVOID); … … 2108 2108 fSplitStatus = (fSplitStatus) ? FALSE : TRUE; 2109 2109 PostMsg(hwndMain, WM_COMMAND, MPFROM2SHORT(IDM_BLINK, 0), MPVOID); 2110 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "SplitStatus", &fSplitStatus,2110 PrfWriteProfileData(fmprof, FM3Str, "SplitStatus", &fSplitStatus, 2111 2111 sizeof(BOOL)); 2112 2112 } 2113 2113 } 2114 2114 fUserListSwitches = WinQueryButtonCheckstate(hwnd, CFGM_USERLISTSWITCHES); 2115 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "UserListSwitches",2115 PrfWriteProfileData(fmprof, FM3Str, "UserListSwitches", 2116 2116 (PVOID) & fUserListSwitches, sizeof(BOOL)); 2117 2117 fExternalINIs = WinQueryButtonCheckstate(hwnd, CFGM_EXTERNALINIS); 2118 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "ExternalINIs",2118 PrfWriteProfileData(fmprof, FM3Str, "ExternalINIs", 2119 2119 (PVOID) & fExternalINIs, sizeof(BOOL)); 2120 2120 fExternalArcboxes = WinQueryButtonCheckstate(hwnd, CFGM_EXTERNALARCBOXES); 2121 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "ExternalArcboxes",2121 PrfWriteProfileData(fmprof, FM3Str, "ExternalArcboxes", 2122 2122 (PVOID) & fExternalArcboxes, sizeof(BOOL)); 2123 2123 fExternalCollector = 2124 2124 WinQueryButtonCheckstate(hwnd, CFGM_EXTERNALCOLLECTOR); 2125 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "ExternalCollector",2125 PrfWriteProfileData(fmprof, FM3Str, "ExternalCollector", 2126 2126 (PVOID) & fExternalCollector, sizeof(BOOL)); 2127 2127 fExternalViewer = WinQueryButtonCheckstate(hwnd, CFGM_EXTERNALVIEWER); 2128 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "ExternalViewer",2128 PrfWriteProfileData(fmprof, FM3Str, "ExternalViewer", 2129 2129 (PVOID) & fExternalViewer, sizeof(BOOL)); 2130 2130 { … … 2150 2150 fSaveState = WinQueryButtonCheckstate(hwnd, CFGM_SAVESTATE); 2151 2151 PrfWriteProfileData(fmprof, 2152 (CHAR *)FM3Str,2152 FM3Str, 2153 2153 "SaveState", (PVOID) & fSaveState, sizeof(BOOL)); 2154 2154 fStartMinimized = WinQueryButtonCheckstate(hwnd, CFGM_STARTMIN); … … 2167 2167 fTileBackwards = WinQueryButtonCheckstate(hwnd, CFGM_TILEBACKWARDS); 2168 2168 PrfWriteProfileData(fmprof, 2169 (CHAR *)FM3Str,2169 FM3Str, 2170 2170 "TileBackwards", 2171 2171 (PVOID) & fTileBackwards, sizeof(BOOL)); … … 2695 2695 fExternalCollector = WinQueryButtonCheckstate(hwnd, 2696 2696 CFG5_EXTERNALCOLLECTOR); 2697 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, "ExternalCollector",2697 PrfWriteProfileData(fmprof, FM3Str, "ExternalCollector", 2698 2698 &fExternalCollector, sizeof(BOOL)); 2699 2699 { … … 4100 4100 Runtime_Error(pszSrcFile, __LINE__, "bad menu id %lu", ulPageId); 4101 4101 else { 4102 PrfWriteProfileData(fmprof, (CHAR *)FM3Str, pszIK_LastSettingsPage,4102 PrfWriteProfileData(fmprof, FM3Str, pszIK_LastSettingsPage, 4103 4103 (PVOID)&x, sizeof(x)); 4104 4104 hwndMenu = WinWindowFromID(hwndOwner, FID_MENU);
Note:
See TracChangeset
for help on using the changeset viewer.