Changeset 1673 for trunk/dll/treecnr.c
- Timestamp:
- Dec 30, 2012, 7:51:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/treecnr.c
r1663 r1673 265 265 BOOL maketop) 266 266 { 267 /* Find a record in tree view, move it so it shows in container and 268 make it the current record */ 267 /** 268 * Find a record in tree view, move it so it shows in container and 269 * make it the current record 270 */ 269 271 270 272 PCNRITEM pci, pciToSelect, pciP; … … 341 343 } // while 342 344 } 343 / * expand all parent branches */345 // expand all parent branches 344 346 pciToSelect = pci; 345 347 for (;;) { … … 358 360 } // for 359 361 } 360 / * make record visible */362 // make record visible 361 363 MakeTop: 362 364 pciToSelect = pci; … … 471 473 mr = CommonFrameWndProc(TREE_CNR, hwnd, msg, mp1, mp2); 472 474 473 /* 475 /** 474 476 * Calculate the position of the client rectangle. 475 477 * Otherwise, we'll see a lot of redraw when we move the … … 492 494 sCount = (SHORT) CommonFrameWndProc(TREE_CNR, hwnd, msg, mp1, mp2); 493 495 494 /* 495 * Reformat the frame to "squeeze" the client 496 */ 496 // Reformat the frame to "squeeze" the client 497 497 498 498 pswp = (PSWP) mp1; … … 843 843 } 844 844 else { 845 / * find root record and strip it */845 // find root record and strip it 846 846 pci = FindParentRecord(dcd->hwndCnr, pci); 847 847 driveserial[toupper(*pci->pszFileName) - 'A'] = -1; … … 857 857 858 858 case UM_RESCAN: 859 /* 860 * populate container 861 */ 859 // populate container 862 860 DosWaitEventSem(hevTreeCnrScanComplete, SEM_INDEFINITE_WAIT); 863 861 DosResetEventSem(hevTreeCnrScanComplete, &ulScanPostCnt); … … 1188 1186 1189 1187 if (dcd && dcd->hwndFrame == WinQueryActiveWindow(dcd->hwndParent)) { 1190 /* 1191 * put name of our window on status line 1192 */ 1188 // put name of our window on status line 1193 1189 1194 1190 PCNRITEM pci = NULL; … … 1262 1258 else { 1263 1259 if (!dcd->hwndObject) { 1264 /* 1265 * first time through -- set things up 1266 */ 1260 // first time through -- set things up 1267 1261 CNRINFO cnri; 1268 1262 … … 1461 1455 Win_Error(hwnd, hwnd, pszSrcFile, __LINE__, 1462 1456 PCSZ_DRGACCESSDRAGINFO); 1463 return (MRFROM2SHORT(DOR_NODROP, 0)); / * Drop not valid */1457 return (MRFROM2SHORT(DOR_NODROP, 0)); // Drop not valid 1464 1458 } 1465 1459 pci = (PCNRITEM) ((PCNRDRAGINFO) mp2)->pRecord; … … 1503 1497 } 1504 1498 } 1505 pDItem = DrgQueryDragitemPtr(pDInfo, /* Access DRAGITEM */ 1506 0); /* Index to DRAGITEM */ 1507 if (DrgVerifyRMF(pDItem, /* Check valid rendering */ 1508 (CHAR *) DRM_OS2FILE, /* mechanisms and data */ 1509 NULL) || DrgVerifyRMF(pDItem, (CHAR *) DRM_FM2ARCMEMBER, 1510 (CHAR *) DRF_FM2ARCHIVE)) { /* formats */ 1511 DrgFreeDraginfo(pDInfo); /* Free DRAGINFO */ 1499 pDItem = DrgQueryDragitemPtr(pDInfo, // Access DRAGITEM 1500 0); // Index to DRAGITEM 1501 if (DrgVerifyRMF(pDItem, // Check valid rendering 1502 (CHAR *) DRM_OS2FILE, // mechanisms and data 1503 NULL) || DrgVerifyRMF(pDItem, 1504 (CHAR *) DRM_FM2ARCMEMBER, 1505 (CHAR *) DRF_FM2ARCHIVE)) { // formats 1506 DrgFreeDraginfo(pDInfo); // Free DRAGINFO 1512 1507 if (!pci || (INT) pci == -1) 1513 1508 return MRFROM2SHORT(DOR_DROP, DO_MOVE); … … 1517 1512 if (toupper(*pci->pszFileName) < 'C') 1518 1513 return MRFROM2SHORT(DOR_DROP, DO_COPY); 1519 return MRFROM2SHORT(DOR_DROP, /* Return okay to drop */1514 return MRFROM2SHORT(DOR_DROP, // Return okay to drop 1520 1515 ((fCopyDefault) ? DO_COPY : DO_MOVE)); 1521 1516 } 1522 DrgFreeDraginfo(pDInfo); /* Free DRAGINFO */1523 } 1524 return MRFROM2SHORT(DOR_NODROP, 0); /* Drop not valid */1517 DrgFreeDraginfo(pDInfo); // Free DRAGINFO 1518 } 1519 return MRFROM2SHORT(DOR_NODROP, 0); // Drop not valid 1525 1520 1526 1521 case CN_INITDRAG: … … 2917 2912 } 2918 2913 } 2919 / * else intentional fallthru */2914 // else intentional fallthru 2920 2915 case IDM_ATTRS: 2921 2916 case IDM_INFO: … … 3103 3098 dcd->stopflag++; 3104 3099 if (dcd && dcd->hwndObject) { 3105 / * kill object window */3100 // kill object window 3106 3101 if (WinIsWindow((HAB) 0, dcd->hwndObject)) { 3107 3102 if (!PostMsg(dcd->hwndObject, WM_CLOSE, MPVOID, MPVOID)) … … 3150 3145 HWND StartTreeCnr(HWND hwndParent, ULONG flags) 3151 3146 { 3152 /* bitmapped flags: 3147 /** 3148 * bitmapped flags: 3153 3149 * 0x00000001 = don't close app when window closes 3154 3150 * 0x00000002 = no frame controls
Note:
See TracChangeset
for help on using the changeset viewer.