Changeset 1673 for trunk/dll/collect.c


Ignore:
Timestamp:
Dec 30, 2012, 7:51:01 PM (13 years ago)
Author:
Gregg Young
Message:

Update to Doxygen comment style Ticket 55. Also some minor code cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/collect.c

    r1671 r1673  
    228228              }
    229229
    230               /* don't have tree view in collector */
     230              // don't have tree view in collector
    231231              WinSendMsg(hwndButtonPopup,
    232232                         MM_DELETEITEM,
     
    597597      Fortify_BecomeOwner(dcd);
    598598#     endif
    599       /* set unique id */
     599      // set unique id
    600600      WinSetWindowUShort(hwnd,
    601601                         QWS_ID,
     
    696696        }
    697697        else {
    698           Win_Error(hwnd, hwnd, pszSrcFile, __LINE__,
    699                     "CM_QUERYCNRINFO" /* PCSZ_QUERYCNRINFO fixme */);
     698          Win_Error(hwnd, hwnd, pszSrcFile, __LINE__, PCSZ_QUERYCNRINFO);
    700699          ulRecsAtStart = 0;
    701700        }
     
    940939          }
    941940          if (errs > (first ? 0 : 50)) {
    942             /* prevent runaway on bad file */
     941            // prevent runaway on bad file
    943942            APIRET ret = saymsg(MB_YESNO, dcd->hwndCnr,
    944943                                GetPString(IDS_COLLECTNOLISTHDRTEXT),
     
    12451244          USHORT attrib = CRA_CURSORED;
    12461245
    1247           /* make found item current item */
     1246          // make found item current item
    12481247          if (!stricmp(pci->pszFileName, dcd->szCommonName))
    12491248            attrib |= CRA_SELECTED;
    12501249          WinSendMsg(hwnd, CM_SETRECORDEMPHASIS, MPFROMP(pci),
    12511250                     MPFROM2SHORT(TRUE, attrib));
    1252           /* make sure that record shows in viewport */
     1251          // make sure that record shows in viewport
    12531252          ShowCnrRecord(hwnd, (PMINIRECORDCORE) pci);
    12541253          return (MRESULT) TRUE;
     
    13331332
    13341333  case WM_SETFOCUS:
    1335     /*
    1336      * put name of our window on status line
    1337      */
     1334    // put name of our window on status line
    13381335    if (dcd && hwndStatus && mp2) {
    13391336      PCNRITEM pci = NULL;
     
    15031500    if (dcd) {
    15041501      if (!dcd->hwndObject) {
    1505         /* first time through -- set things up */
     1502        // first time through -- set things up
    15061503
    15071504        CNRINFO cnri;
     
    15521549        AdjustCnrColsForPref(hwnd, NULL, &dcd->ds, FALSE);
    15531550
    1554         /* fix splitbar for collector container */
     1551        // fix splitbar for collector container
    15551552        cnri.xVertSplitbar = DIR_SPLITBAR_OFFSET - 32;
    15561553        size = sizeof(LONG);
     
    25462543          // fixme to know why needed
    25472544          pDInfo = ((PCNRDRAGINFO) mp2)->pDragInfo;
    2548           DrgAccessDraginfo(pDInfo);    /* Access DRAGINFO */
    2549           DrgFreeDraginfo(pDInfo);      /* Free DRAGINFO */
     2545          DrgAccessDraginfo(pDInfo);    // Access DRAGINFO
     2546          DrgFreeDraginfo(pDInfo);      // Free DRAGINFO
    25502547        }
    25512548        return 0;
     
    25542551      case CN_DRAGOVER:
    25552552        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
    25582555          PCNRITEM pci;
    25592556          USHORT uso;
     
    25662563            Win_Error(hwnd, hwnd, pszSrcFile, __LINE__,
    25672564                      PCSZ_DRGACCESSDRAGINFO);
    2568             return (MRFROM2SHORT(DOR_NODROP, 0));       /* Drop not valid */
     2565            return (MRFROM2SHORT(DOR_NODROP, 0));       // Drop not valid
    25692566          }
    25702567          if (pci) {
     
    26002597            }
    26012598          }
    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
    26062603                           NULL)) {
    2607             DrgFreeDraginfo(pDInfo);    /* Free DRAGINFO */
     2604            DrgFreeDraginfo(pDInfo);               // Free DRAGINFO
    26082605            if (pci) {
    26092606              if (driveflags[toupper(*pci->pszFileName) - 'A'] &
     
    26122609              if (toupper(*pci->pszFileName) < 'C')
    26132610                return MRFROM2SHORT(DOR_DROP, DO_COPY);
    2614               return MRFROM2SHORT(DOR_DROP,     /* Return okay to drop */
     2611              return MRFROM2SHORT(DOR_DROP,            // Return okay to drop
    26152612                                  ((fCopyDefault) ? DO_COPY : DO_MOVE));
    26162613            }
    26172614            else
    2618               return MRFROM2SHORT(DOR_DROP,     /* Return okay to drop */
     2615              return MRFROM2SHORT(DOR_DROP,            // Return okay to drop
    26192616                                  DO_COPY);
    26202617          }
    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
    26242621
    26252622      case CN_INITDRAG:
Note: See TracChangeset for help on using the changeset viewer.