Changeset 1673 for trunk/dll/collect.c
- Timestamp:
- Dec 30, 2012, 7:51:01 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/dll/collect.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/collect.c
r1671 r1673 228 228 } 229 229 230 / * don't have tree view in collector */230 // don't have tree view in collector 231 231 WinSendMsg(hwndButtonPopup, 232 232 MM_DELETEITEM, … … 597 597 Fortify_BecomeOwner(dcd); 598 598 # endif 599 / * set unique id */599 // set unique id 600 600 WinSetWindowUShort(hwnd, 601 601 QWS_ID, … … 696 696 } 697 697 else { 698 Win_Error(hwnd, hwnd, pszSrcFile, __LINE__, 699 "CM_QUERYCNRINFO" /* PCSZ_QUERYCNRINFO fixme */); 698 Win_Error(hwnd, hwnd, pszSrcFile, __LINE__, PCSZ_QUERYCNRINFO); 700 699 ulRecsAtStart = 0; 701 700 } … … 940 939 } 941 940 if (errs > (first ? 0 : 50)) { 942 / * prevent runaway on bad file */941 // prevent runaway on bad file 943 942 APIRET ret = saymsg(MB_YESNO, dcd->hwndCnr, 944 943 GetPString(IDS_COLLECTNOLISTHDRTEXT), … … 1245 1244 USHORT attrib = CRA_CURSORED; 1246 1245 1247 / * make found item current item */1246 // make found item current item 1248 1247 if (!stricmp(pci->pszFileName, dcd->szCommonName)) 1249 1248 attrib |= CRA_SELECTED; 1250 1249 WinSendMsg(hwnd, CM_SETRECORDEMPHASIS, MPFROMP(pci), 1251 1250 MPFROM2SHORT(TRUE, attrib)); 1252 / * make sure that record shows in viewport */1251 // make sure that record shows in viewport 1253 1252 ShowCnrRecord(hwnd, (PMINIRECORDCORE) pci); 1254 1253 return (MRESULT) TRUE; … … 1333 1332 1334 1333 case WM_SETFOCUS: 1335 /* 1336 * put name of our window on status line 1337 */ 1334 // put name of our window on status line 1338 1335 if (dcd && hwndStatus && mp2) { 1339 1336 PCNRITEM pci = NULL; … … 1503 1500 if (dcd) { 1504 1501 if (!dcd->hwndObject) { 1505 / * first time through -- set things up */1502 // first time through -- set things up 1506 1503 1507 1504 CNRINFO cnri; … … 1552 1549 AdjustCnrColsForPref(hwnd, NULL, &dcd->ds, FALSE); 1553 1550 1554 / * fix splitbar for collector container */1551 // fix splitbar for collector container 1555 1552 cnri.xVertSplitbar = DIR_SPLITBAR_OFFSET - 32; 1556 1553 size = sizeof(LONG); … … 2546 2543 // fixme to know why needed 2547 2544 pDInfo = ((PCNRDRAGINFO) mp2)->pDragInfo; 2548 DrgAccessDraginfo(pDInfo); / * Access DRAGINFO */2549 DrgFreeDraginfo(pDInfo); / * Free DRAGINFO */2545 DrgAccessDraginfo(pDInfo); // Access DRAGINFO 2546 DrgFreeDraginfo(pDInfo); // Free DRAGINFO 2550 2547 } 2551 2548 return 0; … … 2554 2551 case CN_DRAGOVER: 2555 2552 if (mp2) { 2556 PDRAGITEM pDItem; / * Pointer to DRAGITEM */2557 PDRAGINFO pDInfo; / * Pointer to DRAGINFO */2553 PDRAGITEM pDItem; // Pointer to DRAGITEM 2554 PDRAGINFO pDInfo; // Pointer to DRAGINFO 2558 2555 PCNRITEM pci; 2559 2556 USHORT uso; … … 2566 2563 Win_Error(hwnd, hwnd, pszSrcFile, __LINE__, 2567 2564 PCSZ_DRGACCESSDRAGINFO); 2568 return (MRFROM2SHORT(DOR_NODROP, 0)); / * Drop not valid */2565 return (MRFROM2SHORT(DOR_NODROP, 0)); // Drop not valid 2569 2566 } 2570 2567 if (pci) { … … 2600 2597 } 2601 2598 } 2602 pDItem = DrgQueryDragitemPtr(pDInfo, /* Access DRAGITEM */2603 0); /* Index to DRAGITEM */2604 if (DrgVerifyRMF(pDItem, /* Check valid rendering */2605 (CHAR *) DRM_OS2FILE, /* mechanisms and data */2599 pDItem = DrgQueryDragitemPtr(pDInfo, // Access DRAGITEM 2600 0); // Index to DRAGITEM 2601 if (DrgVerifyRMF(pDItem, // Check valid rendering 2602 (CHAR *) DRM_OS2FILE, // mechanisms and data 2606 2603 NULL)) { 2607 DrgFreeDraginfo(pDInfo); /* Free DRAGINFO */2604 DrgFreeDraginfo(pDInfo); // Free DRAGINFO 2608 2605 if (pci) { 2609 2606 if (driveflags[toupper(*pci->pszFileName) - 'A'] & … … 2612 2609 if (toupper(*pci->pszFileName) < 'C') 2613 2610 return MRFROM2SHORT(DOR_DROP, DO_COPY); 2614 return MRFROM2SHORT(DOR_DROP, /* Return okay to drop */2611 return MRFROM2SHORT(DOR_DROP, // Return okay to drop 2615 2612 ((fCopyDefault) ? DO_COPY : DO_MOVE)); 2616 2613 } 2617 2614 else 2618 return MRFROM2SHORT(DOR_DROP, /* Return okay to drop */2615 return MRFROM2SHORT(DOR_DROP, // Return okay to drop 2619 2616 DO_COPY); 2620 2617 } 2621 DrgFreeDraginfo(pDInfo); /* Free DRAGINFO */2622 } 2623 return (MRFROM2SHORT(DOR_NODROP, 0)); /* Drop not valid */2618 DrgFreeDraginfo(pDInfo); // Free DRAGINFO 2619 } 2620 return (MRFROM2SHORT(DOR_NODROP, 0)); // Drop not valid 2624 2621 2625 2622 case CN_INITDRAG:
Note:
See TracChangeset
for help on using the changeset viewer.
