Changeset 447 for trunk/dll/mainwnd.c
- Timestamp:
- Aug 24, 2006, 6:52:11 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/mainwnd.c
r419 r447 23 23 29 May 06 SHL IDM_EDITANYARCHIVER: sanitize code 24 24 17 Jul 06 SHL Use Runtime_Error 25 17 Aug 06 SHL Complain nicer if state name does not exist 25 26 26 27 ***********************************************************************/ … … 320 321 while ((hwndC = WinGetNextWindow(henum)) != NULLHANDLE) 321 322 { 322 // saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"Tree = %lu\rExclude = %lu\rFound = %lu",hwndTree,exclude,hwndC);323 // saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"Tree = %lu\rExclude = %lu\rFound = %lu",hwndTree,exclude,hwndC); 323 324 if (hwndC != exclude && 324 325 hwndC != hwndTree) … … 349 350 { 350 351 MakeValidDir(ret); 351 // saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"Tree = %lu\rExclude = %lu\rFound = %lu\r\"%s\"",hwndTree,exclude,hwndC,ret);352 // saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"Tree = %lu\rExclude = %lu\rFound = %lu\r\"%s\"",hwndTree,exclude,hwndC,ret); 352 353 WinEndEnumWindows(henum); 353 354 return hwndC; … … 715 716 case WM_BEGINDRAG: 716 717 id = WinQueryWindowUShort(hwnd, QWS_ID); 717 // saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"%u %s %u",id,(id == CBID_EDIT) ? "TRUE" : "FALSE",WinQueryWindowUShort(WinQueryWindow(hwnd,QW_PARENT),QWS_ID) == MAIN_USERLIST);718 // saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"%u %s %u",id,(id == CBID_EDIT) ? "TRUE" : "FALSE",WinQueryWindowUShort(WinQueryWindow(hwnd,QW_PARENT),QWS_ID) == MAIN_USERLIST); 718 719 if (id == CBID_EDIT && 719 720 WinQueryWindowUShort(WinQueryWindow(hwnd, QW_PARENT), QWS_ID) == … … 726 727 WinQueryWindowText(hwnd, CCHMAXPATH, path); 727 728 bstrip(path); 728 // saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"Dragging: %s",path);729 // saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"Dragging: %s",path); 729 730 if (*path && !IsRoot(path)) 730 731 DragOne(hwnd, (HWND)0, path, FALSE); … … 1454 1455 if (tool && (tool -> flags & T_DROPABLE) != 0) 1455 1456 { 1456 1457 1457 LISTINFO *li; 1458 1458 CNRDRAGINFO cdi; … … 1464 1464 } 1465 1465 memset(&cdi, 0, sizeof(cdi)); 1466 cdi.pRecord = NULL;1467 1466 cdi.pDragInfo = mp1; 1468 1467 li = DoFileDrop(hwnd, … … 1478 1477 else 1479 1478 { 1480 1481 1479 HWND hwndActive; 1482 1480 … … 5045 5043 if (*name) 5046 5044 { 5047 if (SHORT1FROMMP(mp1) == IDM_SAVEDIRCNRSTATE) 5048 {5045 if (SHORT1FROMMP(mp1) == IDM_SAVEDIRCNRSTATE) { 5046 // Save 5049 5047 if (SaveDirCnrState(hwnd, name)) 5050 5048 { … … 5057 5055 } 5058 5056 } 5059 WinSetWindowText(hwndStatelist, 5060 GetPString(IDS_STATETEXT)); 5061 } 5062 else 5063 { 5064 5057 WinSetWindowText(hwndStatelist,GetPString(IDS_STATETEXT)); 5058 } 5059 else { 5060 // Delete 5065 5061 ULONG numsaves = 0, size, x; 5066 5062 CHAR s[120]; … … 5070 5066 sprintf(s, "%s.NumDirsLastTime", name); 5071 5067 size = sizeof(ULONG); 5072 if (!PrfQueryProfileData(fmprof, FM3Str, s, (PVOID)&numsaves, &size)) 5073 Win_Error2(hwnd,hwnd,__FILE__,__LINE__,IDS_PRFQUERYPROFILEDATA); 5068 if (!PrfQueryProfileData(fmprof, FM3Str, s, (PVOID)&numsaves, &size)) { 5069 saymsg(MB_ENTER | MB_ICONASTERISK, 5070 hwnd, 5071 GetPString(IDS_WARNINGTEXT), 5072 GetPString(IDS_DOESNTEXISTTEXT), name); 5073 } 5074 5074 else if (!size) 5075 5075 Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT);
Note:
See TracChangeset
for help on using the changeset viewer.