Changeset 997 for trunk/dll/notebook.c
- Timestamp:
- Mar 8, 2008, 9:27:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/notebook.c
r985 r997 1812 1812 } 1813 1813 detailslongname = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLNAMES); 1814 PrfWriteProfileData(fmprof, appname, "D etailsLongname",1814 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLongname", 1815 1815 &detailslongname, sizeof(BOOL)); 1816 1816 detailssubject = WinQueryButtonCheckstate(hwnd, CFG5_SHOWSUBJECT); 1817 PrfWriteProfileData(fmprof, appname, "D etailsSubject",1817 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSubject", 1818 1818 &detailssubject, sizeof(BOOL)); 1819 PrfWriteProfileData(fmprof, appname, "D etailsEA",1819 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsEA", 1820 1820 &detailsea, sizeof(BOOL)); 1821 1821 detailssize = WinQueryButtonCheckstate(hwnd, CFG5_SHOWSIZE); 1822 PrfWriteProfileData(fmprof, appname, "D etailsSize",1822 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSize", 1823 1823 &detailssize, sizeof(BOOL)); 1824 1824 detailsicon = WinQueryButtonCheckstate(hwnd, CFG5_SHOWICON); 1825 PrfWriteProfileData(fmprof, appname, "D etailsIcon",1825 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsIcon", 1826 1826 &detailsicon, sizeof(BOOL)); 1827 1827 detailslwdate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLWDATE); 1828 PrfWriteProfileData(fmprof, appname, "D etailsLWDate",1828 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWDate", 1829 1829 &detailslwdate, sizeof(BOOL)); 1830 1830 detailslwtime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLWTIME); 1831 PrfWriteProfileData(fmprof, appname, "D etailsLWTime",1831 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWTime", 1832 1832 &detailslwtime, sizeof(BOOL)); 1833 1833 detailsladate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLADATE); 1834 PrfWriteProfileData(fmprof, appname, "D etailsLADate",1834 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLADate", 1835 1835 &detailsladate, sizeof(BOOL)); 1836 1836 detailslatime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWLATIME); 1837 PrfWriteProfileData(fmprof, appname, "D etailsLATime",1837 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLATime", 1838 1838 &detailslatime, sizeof(BOOL)); 1839 1839 detailscrdate = WinQueryButtonCheckstate(hwnd, CFG5_SHOWCRDATE); 1840 PrfWriteProfileData(fmprof, appname, "D etailsCRDate",1840 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRDate", 1841 1841 &detailscrdate, sizeof(BOOL)); 1842 1842 detailscrtime = WinQueryButtonCheckstate(hwnd, CFG5_SHOWCRTIME); 1843 PrfWriteProfileData(fmprof, appname, "D etailsCRTime",1843 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRTime", 1844 1844 &detailscrtime, sizeof(BOOL)); 1845 1845 detailsattr = WinQueryButtonCheckstate(hwnd, CFG5_SHOWATTR); 1846 PrfWriteProfileData(fmprof, appname, "D etailsAttr",1846 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsAttr", 1847 1847 &detailsattr, sizeof(BOOL)); 1848 1848 fSubjectInLeftPane = WinQueryButtonCheckstate(hwnd, CFG5_SUBJECTINLEFTPANE); 1849 PrfWriteProfileData(fmprof, appname, " SubjectInLeftPane",1849 PrfWriteProfileData(fmprof, appname, "DirCnr.SubjectInLeftPane", 1850 1850 &fSubjectInLeftPane, sizeof(BOOL)); 1851 1851 fSubjectLengthMax = WinQueryButtonCheckstate(hwnd, CFG5_SUBJECTLENGTHMAX); 1852 PrfWriteProfileData(fmprof, appname, " SubjectLengthMax",1852 PrfWriteProfileData(fmprof, appname, "DirCnr.SubjectLengthMax", 1853 1853 &fSubjectLengthMax, sizeof(BOOL)); 1854 1854 *mask.prompt = 0; … … 1866 1866 SubjectDisplayWidth = 0; 1867 1867 PrfWriteProfileData(fmprof, 1868 appname, " SubjectDisplayWidth",1868 appname, "DirCnr.SubjectDisplayWidth", 1869 1869 &SubjectDisplayWidth, sizeof(ULONG)); 1870 1870 } … … 2956 2956 } 2957 2957 // Save new details settings and refresh windows 2958 PrfWriteProfileData(fmprof, appname, "D etailsLongname",2958 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLongname", 2959 2959 &detailslongname, sizeof(BOOL)); 2960 PrfWriteProfileData(fmprof, appname, "D etailsSubject",2960 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSubject", 2961 2961 &detailssubject, sizeof(BOOL)); 2962 PrfWriteProfileData(fmprof, appname, "D etailsEA",2962 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsEA", 2963 2963 &detailsea, sizeof(BOOL)); 2964 PrfWriteProfileData(fmprof, appname, "D etailsSize",2964 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsSize", 2965 2965 &detailssize, sizeof(BOOL)); 2966 PrfWriteProfileData(fmprof, appname, "D etailsIcon",2966 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsIcon", 2967 2967 &detailsicon, sizeof(BOOL)); 2968 PrfWriteProfileData(fmprof, appname, "D etailsLWDate",2968 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWDate", 2969 2969 &detailslwdate, sizeof(BOOL)); 2970 PrfWriteProfileData(fmprof, appname, "D etailsLWTime",2970 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLWTime", 2971 2971 &detailslwtime, sizeof(BOOL)); 2972 PrfWriteProfileData(fmprof, appname, "D etailsLADate",2972 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLADate", 2973 2973 &detailsladate, sizeof(BOOL)); 2974 PrfWriteProfileData(fmprof, appname, "D etailsLATime",2974 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsLATime", 2975 2975 &detailslatime, sizeof(BOOL)); 2976 PrfWriteProfileData(fmprof, appname, "D etailsCRDate",2976 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRDate", 2977 2977 &detailscrdate, sizeof(BOOL)); 2978 PrfWriteProfileData(fmprof, appname, "D etailsCRTime",2978 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsCRTime", 2979 2979 &detailscrtime, sizeof(BOOL)); 2980 PrfWriteProfileData(fmprof, appname, "D etailsAttr",2980 PrfWriteProfileData(fmprof, appname, "DirCnr.DetailsAttr", 2981 2981 &detailsattr, sizeof(BOOL)); 2982 2982 if (hwndMain) { … … 2986 2986 PostMsg(MainObjectHwnd, UM_RESTORE, MPVOID, MPFROMLONG(2)); 2987 2987 // Restore saved state 2988 // PostMsg(hwndMain, UM_RESTORE, MPVOID, MPVOID);2989 2988 PostMsg(MainObjectHwnd, UM_RESTORE, GetPString(IDS_FM2TEMPTEXT), MPVOID); 2990 2989 }
Note:
See TracChangeset
for help on using the changeset viewer.