Changeset 787 for trunk/dll/mainwnd.c
- Timestamp:
- Aug 19, 2007, 11:02:37 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/mainwnd.c
r775 r787 37 37 06 Aug 07 GKY Reduce DosSleep times (ticket 148) 38 38 07 Aug 07 SHL Use BldQuotedFileName 39 16 Aug 07 SHL Update IDM_SAVEDIRCNRSTATE logic for ticket# 109 40 18 Aug 07 SHL Rework UM_FILLSETUPLIST for new setups storage 41 19 Aug 07 SHL Move #pragma alloc_text to end of file for OpenWatcom 39 42 40 43 ***********************************************************************/ … … 43 46 #define INCL_WIN 44 47 // #define INCL_WINERRORS 45 #define INCL_SHLERRORS 48 #define INCL_SHLERRORS // PMERR_NOT_IN_IDX 46 49 #define INCL_WINHELP 47 50 #define INCL_GPI … … 66 69 67 70 static PSZ pszSrcFile = __FILE__; 68 69 #pragma alloc_text(MISC8,SetToggleChecks,FindDirCnrByName,TopWindow)70 #pragma alloc_text(MISC8,TopWindowName,CountDirCnrs)71 #pragma alloc_text(MAINWND,AdjustSizeOfClient,FillClient,ChildButtonProc)72 #pragma alloc_text(MAINWND,ToolBackProc,StatusProc)73 #pragma alloc_text(MAINWND,MoveChildrenAwayFromTree,ArrangeIcons,NextChild)74 #pragma alloc_text(MAINWND,ChildFrameButtonProc)75 #pragma alloc_text(MAINWND2,CloseChildren,CountChildren,GetNextWindowPos)76 #pragma alloc_text(MAINWND2,CascadeChildren,TileChildren,ResizeChildren)77 #pragma alloc_text(MAINWND2,MinResChildren,MainFrameWndProc,MainWndProc)78 #pragma alloc_text(MAINWND2,DropDownListProc)79 #pragma alloc_text(MAINWND3,RestoreDirCnrState,SaveDirCnrState)80 #pragma alloc_text(MAINWND3,CloseDirCnrChildren,TransformSwp)81 #pragma alloc_text(MAINWND3,ResizeTools,BuildTools,CommandLineProc)82 #pragma alloc_text(MAINWND4,DriveProc,DriveBackProc,BuildDriveBarButtons,ResizeDrives)83 #pragma alloc_text(MAINWND4,LEDProc,IdealButtonProc)84 #pragma alloc_text(MAINWND5,MainWMOnce)85 #pragma alloc_text(MAINWND6,MainWMCommand)86 #pragma alloc_text(BUBBLE,MakeBubble,BubbleProc,BubbleHelp)87 #pragma alloc_text(MAINOBJ,MainObjectWndProc,MakeMainObjWin)88 71 89 72 static USHORT firsttool = 0; … … 160 143 bd = 3L; 161 144 *s = (CHAR) bd + '@'; 162 WinSendMsg(hwndMain, UM_SETDIR, MPFROMP(s), MPFROMLONG(1 L));145 WinSendMsg(hwndMain, UM_SETDIR, MPFROMP(s), MPFROMLONG(1)); 163 146 if (!mp1) { 164 147 s[3] = 0; 165 148 WinSendMsg(hwndMain, UM_SETDIR, MPFROMP(s), MPVOID); 166 149 } 167 PostMsg(MainObjectHwnd, UM_RESTORE, MPFROMLONG(1 L), MPFROMLONG(1L));150 PostMsg(MainObjectHwnd, UM_RESTORE, MPFROMLONG(1), MPFROMLONG(1)); 168 151 } 169 152 return 0; … … 2654 2637 */ 2655 2638 2639 #define STATE_NAME_MAX_BYTES 256 2640 2656 2641 BOOL SaveDirCnrState(HWND hwndClient, PSZ pszStateName) 2657 2642 { … … 2659 2644 HWND hwndChild, hwndDir, hwndC; 2660 2645 ULONG numsaves = 0, flWindowAttr; 2661 CHAR szPrefix[ 20];2662 CHAR s [80];2646 CHAR szPrefix[STATE_NAME_MAX_BYTES + 1]; 2647 CHAR szKey[STATE_NAME_MAX_BYTES + 80]; 2663 2648 CHAR szDir[CCHMAXPATH]; 2664 2649 SWP swp; … … 2689 2674 if (driveflags[toupper(*szDir) - 'A'] & DRIVE_NOPRESCAN) 2690 2675 continue; 2691 sprintf(s , "%sDirCnrPos.%lu", szPrefix, numsaves);2692 PrfWriteProfileData(fmprof, FM3Str, s , (PVOID) & swp,2676 sprintf(szKey, "%sDirCnrPos.%lu", szPrefix, numsaves); 2677 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & swp, 2693 2678 sizeof(SWP)); 2694 2679 dcd = 2695 2680 WinQueryWindowPtr(WinWindowFromID(hwndC, DIR_CNR), QWL_USER); 2696 2681 if (dcd) { 2697 sprintf(s , "%sDirCnrSort.%lu", szPrefix, numsaves);2698 PrfWriteProfileData(fmprof, FM3Str, s , (PVOID) & dcd->sortFlags,2682 sprintf(szKey, "%sDirCnrSort.%lu", szPrefix, numsaves); 2683 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->sortFlags, 2699 2684 sizeof(INT)); 2700 sprintf(s , "%sDirCnrFilter.%lu", szPrefix, numsaves);2701 PrfWriteProfileData(fmprof, FM3Str, s , (PVOID) & dcd->mask,2685 sprintf(szKey, "%sDirCnrFilter.%lu", szPrefix, numsaves); 2686 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->mask, 2702 2687 sizeof(MASK)); 2703 sprintf(s , "%sDirCnrView.%lu", szPrefix, numsaves);2688 sprintf(szKey, "%sDirCnrView.%lu", szPrefix, numsaves); 2704 2689 flWindowAttr = dcd->flWindowAttr; 2705 2690 if (!fLeaveTree && (flWindowAttr & CV_TREE)) { … … 2718 2703 flWindowAttr |= CV_NAME; 2719 2704 } 2720 PrfWriteProfileData(fmprof, FM3Str, s , (PVOID) & flWindowAttr,2705 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & flWindowAttr, 2721 2706 sizeof(ULONG)); 2722 2707 } 2723 sprintf(s , "%sDirCnrDir.%lu", szPrefix, numsaves++);2724 PrfWriteProfileString(fmprof, FM3Str, s , szDir);2708 sprintf(szKey, "%sDirCnrDir.%lu", szPrefix, numsaves++); 2709 PrfWriteProfileString(fmprof, FM3Str, szKey, szDir); 2725 2710 fSaved = TRUE; 2726 2711 } … … 2733 2718 if (fSaved) { 2734 2719 if (WinQueryWindowPos(hwndTree, &swp)) { 2735 sprintf(s , "%sLastTreePos", szPrefix);2736 PrfWriteProfileData(fmprof, FM3Str, s , (PVOID) & swp, sizeof(SWP));2737 } 2738 sprintf(s , "%sNumDirsLastTime", szPrefix);2739 PrfWriteProfileData(fmprof, FM3Str, s , (PVOID) & numsaves, sizeof(ULONG));2720 sprintf(szKey, "%sLastTreePos", szPrefix); 2721 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & swp, sizeof(SWP)); 2722 } 2723 sprintf(szKey, "%sNumDirsLastTime", szPrefix); 2724 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & numsaves, sizeof(ULONG)); 2740 2725 WinQueryWindowPos(WinQueryWindow(hwndClient, QW_PARENT), &swp); 2741 sprintf(s , "%sMySizeLastTime", szPrefix);2742 PrfWriteProfileData(fmprof, FM3Str, s , (PVOID) & swp, sizeof(SWP));2726 sprintf(szKey, "%sMySizeLastTime", szPrefix); 2727 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & swp, sizeof(SWP)); 2743 2728 } 2744 2729 … … 2789 2774 static BOOL RestoreDirCnrState(HWND hwndClient, PSZ pszStateName, BOOL noview) 2790 2775 { 2791 CHAR s [80];2776 CHAR szKey[STATE_NAME_MAX_BYTES + 80]; 2792 2777 CHAR szDir[CCHMAXPATH]; 2793 CHAR szPrefix[ 20];2778 CHAR szPrefix[STATE_NAME_MAX_BYTES + 2]; 2794 2779 HWND hwndDir, hwndC; 2795 2780 SWP swp, swpO, swpN; … … 2810 2795 2811 2796 size = sizeof(SWP); 2812 sprintf(s , "%sMySizeLastTime", szPrefix);2797 sprintf(szKey, "%sMySizeLastTime", szPrefix); 2813 2798 if (!PrfQueryProfileData(fmprof, 2814 2799 FM3Str, 2815 s ,2800 szKey, 2816 2801 (PVOID) & swpO, 2817 2802 &size) || … … 2821 2806 } 2822 2807 if (!pszStateName || !strcmp(pszStateName, GetPString(IDS_FM2TEMPTEXT))) 2823 PrfWriteProfileData(fmprof, FM3Str, s , NULL, 0L);2808 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 2824 2809 WinQueryWindowPos(WinQueryWindow(hwndClient, QW_PARENT), &swpN); 2825 2810 if (swpN.fl & (SWP_MINIMIZE | SWP_HIDE)) … … 2828 2813 ytrans = ((double)swpO.cy * 100.0) / (double)swpN.cy; 2829 2814 size = sizeof(SWP); 2830 sprintf(s , "%sLastTreePos", szPrefix);2831 if (PrfQueryProfileData(fmprof, FM3Str, s , (PVOID) & swp, &size)) {2815 sprintf(szKey, "%sLastTreePos", szPrefix); 2816 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) & swp, &size)) { 2832 2817 if (!pszStateName || !strcmp(pszStateName, GetPString(IDS_FM2TEMPTEXT))) 2833 PrfWriteProfileData(fmprof, FM3Str, s , NULL, 0L);2818 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 2834 2819 swp.hwnd = hwndTree; 2835 2820 TransformSwp(&swp, xtrans, ytrans); … … 2859 2844 } 2860 2845 size = sizeof(ULONG); 2861 sprintf(s , "%sNumDirsLastTime", szPrefix);2846 sprintf(szKey, "%sNumDirsLastTime", szPrefix); 2862 2847 if (PrfQueryProfileData(fmprof, 2863 FM3Str, s , (PVOID) & numsaves, &size) && numsaves) {2848 FM3Str, szKey, (PVOID) & numsaves, &size) && numsaves) { 2864 2849 if (!pszStateName || !strcmp(pszStateName, GetPString(IDS_FM2TEMPTEXT))) 2865 PrfWriteProfileData(fmprof, FM3Str, s , NULL, 0L);2850 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 2866 2851 for (x = 0; x < numsaves; x++) { 2867 sprintf(s , "%sDirCnrPos.%lu", szPrefix, x);2852 sprintf(szKey, "%sDirCnrPos.%lu", szPrefix, x); 2868 2853 size = sizeof(SWP); 2869 if (PrfQueryProfileData(fmprof, FM3Str, s , (PVOID) & swp, &size)) {2854 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) & swp, &size)) { 2870 2855 if (!pszStateName || !strcmp(pszStateName, GetPString(IDS_FM2TEMPTEXT))) 2871 PrfWriteProfileData(fmprof, FM3Str, s , NULL, 0L);2872 sprintf(s , "%sDirCnrDir.%lu", szPrefix, x);2856 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 2857 sprintf(szKey, "%sDirCnrDir.%lu", szPrefix, x); 2873 2858 size = sizeof(szDir); 2874 if (PrfQueryProfileData(fmprof, FM3Str, s , (PVOID) szDir, &size)) {2859 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) szDir, &size)) { 2875 2860 if (!pszStateName || !strcmp(pszStateName, GetPString(IDS_FM2TEMPTEXT))) 2876 PrfWriteProfileData(fmprof, FM3Str, s , NULL, 0L);2861 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 2877 2862 if (driveflags[toupper(*szDir) - 'A'] & DRIVE_NOPRESCAN) { 2878 PrfWriteProfileData(fmprof, FM3Str, s , NULL, 0L);2863 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 2879 2864 continue; 2880 2865 } 2881 2866 hwndDir = (HWND) WinSendMsg(hwndClient, 2882 2867 UM_SETDIR, 2883 MPFROMP(szDir), MPFROMLONG(1 L));2868 MPFROMP(szDir), MPFROMLONG(1)); 2884 2869 if (hwndDir) { 2885 2870 hwndC = WinWindowFromID(hwndDir, FID_CLIENT); … … 2889 2874 if (dcd) { 2890 2875 size = sizeof(INT); 2891 sprintf(s , "%sDirCnrSort.%lu", szPrefix, x);2876 sprintf(szKey, "%sDirCnrSort.%lu", szPrefix, x); 2892 2877 if (PrfQueryProfileData(fmprof, 2893 2878 FM3Str, 2894 s ,2879 szKey, 2895 2880 (PVOID) & dcd->sortFlags, 2896 2881 &size) && size == sizeof(INT)) { … … 2899 2884 } 2900 2885 if (!pszStateName || !strcmp(pszStateName, GetPString(IDS_FM2TEMPTEXT))) 2901 PrfWriteProfileData(fmprof, FM3Str, s , NULL, 0L);2886 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 2902 2887 size = sizeof(MASK); 2903 sprintf(s , "%sDirCnrFilter.%lu", szPrefix, x);2888 sprintf(szKey, "%sDirCnrFilter.%lu", szPrefix, x); 2904 2889 if (PrfQueryProfileData(fmprof, 2905 2890 FM3Str, 2906 s ,2891 szKey, 2907 2892 (PVOID) & dcd->mask, &size) && size) { 2908 2893 if (*dcd->mask.szMask) … … 2912 2897 *(dcd->mask.prompt) = 0; 2913 2898 if (!pszStateName || !strcmp(pszStateName, GetPString(IDS_FM2TEMPTEXT))) 2914 PrfWriteProfileData(fmprof, FM3Str, s , NULL, 0L);2899 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 2915 2900 size = sizeof(ULONG); 2916 sprintf(s , "%sDirCnrView.%lu", szPrefix, x);2901 sprintf(szKey, "%sDirCnrView.%lu", szPrefix, x); 2917 2902 if (!noview) { 2918 2903 if (PrfQueryProfileData(fmprof, 2919 2904 FM3Str, 2920 s ,2905 szKey, 2921 2906 (PVOID) & dcd->flWindowAttr, 2922 2907 &size) && size == sizeof(ULONG)) { … … 2939 2924 } 2940 2925 if (!pszStateName || !strcmp(pszStateName, GetPString(IDS_FM2TEMPTEXT))) 2941 PrfWriteProfileData(fmprof, FM3Str, s , NULL, 0L);2926 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 2942 2927 } 2943 2928 } … … 3013 2998 ulCnt = *ulCntR; 3014 2999 ulNumMinChildren = *ulNumMinChildrenR; 3015 if (ulCnt == (ULONG) - 1 L) {3000 if (ulCnt == (ULONG) - 1) { 3016 3001 ulCnt = CountChildren(hwndClient, &ulNumMinChildren); 3017 3002 /* return these values to the caller for later use */ … … 3121 3106 } 3122 3107 if (!fTileBackwards) { 3123 ulNumCols = ulSquare - 1 L;3108 ulNumCols = ulSquare - 1; 3124 3109 ulNumRows = ulChildCnt / ulNumCols; 3125 3110 } 3126 3111 else { 3127 ulNumRows = ulSquare - 1 L;3112 ulNumRows = ulSquare - 1; 3128 3113 ulNumCols = ulChildCnt / ulNumRows; 3129 3114 } … … 3205 3190 QWS_YRESTORE, 3206 3191 (USHORT) (Rectl.yTop - 3207 (ulHeight * (ulCurRow + 1 L))));3192 (ulHeight * (ulCurRow + 1)))); 3208 3193 WinSetWindowUShort(hwndChild, QWS_CXRESTORE, (USHORT) ulWidth); 3209 3194 WinSetWindowUShort(hwndChild, QWS_CYRESTORE, (USHORT) ulHeight); … … 3213 3198 HWND_TOP, 3214 3199 (ulWidth * ulCurCol) + Rectl.xLeft, 3215 Rectl.yTop - (ulHeight * (ulCurRow + 1 L)),3200 Rectl.yTop - (ulHeight * (ulCurRow + 1)), 3216 3201 ulWidth, 3217 3202 ulHeight, … … 4180 4165 case IDM_DELETEDIRCNRSTATE: 4181 4166 { 4182 CHAR szStateName[ 14];4167 CHAR szStateName[STATE_NAME_MAX_BYTES + 1]; 4183 4168 4184 4169 *szStateName = 0; 4185 WinQueryWindowText(hwndStatelist, 13, szStateName);4170 WinQueryWindowText(hwndStatelist, STATE_NAME_MAX_BYTES, szStateName); 4186 4171 bstrip(szStateName); 4187 4172 // Ignore request if blank or attempting to using illegal name … … 4190 4175 // Save 4191 4176 if (SaveDirCnrState(hwnd, szStateName)) { 4192 if (add_setup(szStateName)) { 4177 INT ret = add_setup(szStateName); 4178 if (ret == 0) { 4193 4179 WinSendMsg(hwndStatelist, LM_INSERTITEM, 4194 4180 MPFROM2SHORT(LIT_SORTASCENDING, 0), MPFROMP(szStateName)); 4195 4181 save_setups(); 4196 4182 } 4197 else {4183 else if (ret != 1) { 4198 4184 saymsg(MB_ENTER | MB_ICONASTERISK, hwnd, 4199 4185 GetPString(IDS_WARNINGTEXT), 4200 GetPString(IDS_EXISTSASATEXT), szStateName, "state name");4186 "\"%s\" state name add failed", szStateName); // 15 Apr 07 SHL failed 4201 4187 WinSetWindowText(hwndStatelist, GetPString(IDS_STATETEXT)); 4202 4188 } … … 4212 4198 // Delete 4213 4199 ULONG numsaves = 0, size, x; 4214 CHAR s[80]; 4215 4216 if (remove_setup(szStateName)) 4200 CHAR s[STATE_NAME_MAX_BYTES + 80]; 4201 4202 INT ret = remove_setup(szStateName); 4203 if (ret == 1) 4217 4204 save_setups(); 4218 4205 sprintf(s, "%s.NumDirsLastTime", szStateName); 4219 4206 size = sizeof(ULONG); 4220 if (!PrfQueryProfileData 4221 (fmprof, FM3Str, s, (PVOID) & numsaves, &size)) { 4207 if (!PrfQueryProfileData(fmprof, 4208 FM3Str, 4209 s, 4210 (PVOID)&numsaves, 4211 &size)) { 4222 4212 saymsg(MB_ENTER | MB_ICONASTERISK, hwnd, 4223 4213 GetPString(IDS_WARNINGTEXT), … … 4565 4555 MPFROMP(pci->pszFileName), 4566 4556 (SHORT1FROMMP(mp1) == IDM_AUTOVIEW) ? 4567 MPVOID : MPFROMLONG(1 L));4557 MPVOID : MPFROMLONG(1)); 4568 4558 } 4569 4559 } … … 5063 5053 EM_SETTEXTLIMIT, MPFROM2SHORT(CCHMAXPATH, 0), MPVOID); 5064 5054 WinSendMsg(WinWindowFromID(hwndStatelist, CBID_EDIT), 5065 EM_SETTEXTLIMIT, MPFROM2SHORT( 13, 0), MPVOID);5055 EM_SETTEXTLIMIT, MPFROM2SHORT(STATE_NAME_MAX_BYTES, 0), MPVOID); 5066 5056 WinSendMsg(WinWindowFromID(hwndDrivelist, CBID_EDIT), 5067 5057 EM_SETREADONLY, MPFROM2SHORT(TRUE, 0), MPVOID); … … 5454 5444 5455 5445 case UM_FILLSETUPLIST: 5456 WinSendMsg(hwndStatelist, LM_DELETEALL, MPVOID, MPVOID); 5457 if (fUserComboBox) { 5458 INT x; 5459 5460 if (!loadedsetups) 5461 load_setups(); 5462 for (x = 0; x < MAXNUMSETUPS; x++) { 5463 if (*lastsetups[x]) 5464 WinSendMsg(hwndStatelist, LM_INSERTITEM, 5465 MPFROM2SHORT(LIT_SORTASCENDING, 0), 5466 MPFROMP(lastsetups[x])); 5467 } 5468 WinSetWindowText(hwndStatelist, GetPString(IDS_STATETEXT)); 5469 } 5446 fill_setups_list(); 5470 5447 return 0; 5471 5448 … … 5483 5460 DosError(FERR_DISABLEHARDERR); 5484 5461 hDir = HDIR_CREATE; 5485 ulSearchCount = 1 L;5462 ulSearchCount = 1; 5486 5463 if (!DosFindFirst("*.TLS", &hDir, FILE_READONLY | FILE_ARCHIVED, 5487 5464 &findbuf, sizeof(FILEFINDBUF3), … … 5543 5520 DosError(FERR_DISABLEHARDERR); 5544 5521 hDir = HDIR_CREATE; 5545 ulSearchCount = 1 L;5522 ulSearchCount = 1; 5546 5523 if (!IsRoot(info->path)) 5547 5524 rc = DosFindFirst(info->path, &hDir, FILE_DIRECTORY | … … 5585 5562 DosError(FERR_DISABLEHARDERR); 5586 5563 hDir = HDIR_CREATE; 5587 ulSearchCount = 1 L;5564 ulSearchCount = 1; 5588 5565 if (!IsRoot(info->path)) 5589 5566 rc = DosFindFirst(info->path, &hDir, FILE_DIRECTORY | … … 5670 5647 SHORT1FROMMP(mp1)); 5671 5648 CHAR path[CCHMAXPATH]; 5649 ULONG ul; 5650 5651 switch (SHORT1FROMMP(mp1)) { 5652 case MAIN_USERLIST: 5653 ul = CCHMAXPATH; 5654 break; 5655 case MAIN_SETUPLIST: 5656 ul = STATE_NAME_MAX_BYTES; 5657 break; 5658 default: 5659 ul = 13; // fixme to not be hardcoded 5660 } 5672 5661 5673 5662 SetShiftState(); 5674 WinQueryWindowText(WinWindowFromID(hwndUL, CBID_EDIT), 5675 ((SHORT1FROMMP(mp1) == MAIN_USERLIST) ? 5676 CCHMAXPATH : 13), path); 5663 WinQueryWindowText(WinWindowFromID(hwndUL, CBID_EDIT), ul, path); 5677 5664 bstrip(path); 5678 5665 if (*path) { … … 5720 5707 else if (SHORT1FROMMP(mp1) == MAIN_SETUPLIST) { 5721 5708 5722 CHAR s [80];5709 CHAR szKey[80]; 5723 5710 ULONG size, numsaves = 0; 5724 5711 5725 5712 SetShiftState(); 5726 5713 size = sizeof(ULONG); 5727 sprintf(s, "%s.NumDirsLastTime", path); // path is state name 5728 if (!PrfQueryProfileData 5729 (fmprof, FM3Str, s, (PVOID) & numsaves, &size)) 5714 sprintf(szKey, "%s.NumDirsLastTime", path); // path is state name 5715 if (!PrfQueryProfileData(fmprof, 5716 FM3Str, 5717 szKey, 5718 (PVOID)&numsaves, 5719 &size)) 5730 5720 { 5731 5721 if ((WinGetLastError(WinQueryAnchorBlock(hwnd)) & 0xffff) == PMERR_NOT_IN_IDX) { … … 5751 5741 if ((shiftstate & KC_SHIFT) != 0 || fAutoTile) 5752 5742 PostMsg(MainObjectHwnd, UM_RESTORE, MPVOID, 5753 MPFROMLONG(1 L));5743 MPFROMLONG(1)); 5754 5744 } 5755 5745 else { … … 5854 5844 return WinDefWindowProc(hwnd, msg, mp1, mp2); 5855 5845 } 5846 5847 #pragma alloc_text(MISC8,SetToggleChecks,FindDirCnrByName,TopWindow) 5848 #pragma alloc_text(MISC8,TopWindowName,CountDirCnrs) 5849 #pragma alloc_text(MAINWND,AdjustSizeOfClient,FillClient,ChildButtonProc) 5850 #pragma alloc_text(MAINWND,ToolBackProc,StatusProc) 5851 #pragma alloc_text(MAINWND,MoveChildrenAwayFromTree,ArrangeIcons,NextChild) 5852 #pragma alloc_text(MAINWND,ChildFrameButtonProc) 5853 #pragma alloc_text(MAINWND2,CloseChildren,CountChildren,GetNextWindowPos) 5854 #pragma alloc_text(MAINWND2,CascadeChildren,TileChildren,ResizeChildren) 5855 #pragma alloc_text(MAINWND2,MinResChildren,MainFrameWndProc,MainWndProc) 5856 #pragma alloc_text(MAINWND2,DropDownListProc) 5857 #pragma alloc_text(MAINWND3,RestoreDirCnrState,SaveDirCnrState) 5858 #pragma alloc_text(MAINWND3,CloseDirCnrChildren,TransformSwp) 5859 #pragma alloc_text(MAINWND3,ResizeTools,BuildTools,CommandLineProc) 5860 #pragma alloc_text(MAINWND4,DriveProc,DriveBackProc,BuildDriveBarButtons,ResizeDrives) 5861 #pragma alloc_text(MAINWND4,LEDProc,IdealButtonProc) 5862 #pragma alloc_text(MAINWND5,MainWMOnce) 5863 #pragma alloc_text(MAINWND6,MainWMCommand) 5864 #pragma alloc_text(BUBBLE,MakeBubble,BubbleProc,BubbleHelp) 5865 #pragma alloc_text(MAINOBJ,MainObjectWndProc,MakeMainObjWin) 5866
Note:
See TracChangeset
for help on using the changeset viewer.