Changeset 1673 for trunk/dll/treecnr.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/treecnr.c

    r1663 r1673  
    265265                 BOOL maketop)
    266266{
    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     */
    269271
    270272  PCNRITEM pci, pciToSelect, pciP;
     
    341343        } // while
    342344      }
    343       /* expand all parent branches */
     345      // expand all parent branches
    344346      pciToSelect = pci;
    345347      for (;;) {
     
    358360      } // for
    359361    }
    360     /* make record visible */
     362    // make record visible
    361363  MakeTop:
    362364    pciToSelect = pci;
     
    471473      mr = CommonFrameWndProc(TREE_CNR, hwnd, msg, mp1, mp2);
    472474
    473       /*
     475      /**
    474476       * Calculate the position of the client rectangle.
    475477       * Otherwise,  we'll see a lot of redraw when we move the
     
    492494      sCount = (SHORT) CommonFrameWndProc(TREE_CNR, hwnd, msg, mp1, mp2);
    493495
    494       /*
    495        * Reformat the frame to "squeeze" the client
    496        */
     496      // Reformat the frame to "squeeze" the client
    497497
    498498      pswp = (PSWP) mp1;
     
    843843          }
    844844          else {
    845             /* find root record and strip it */
     845            // find root record and strip it
    846846            pci = FindParentRecord(dcd->hwndCnr, pci);
    847847            driveserial[toupper(*pci->pszFileName) - 'A'] = -1;
     
    857857
    858858  case UM_RESCAN:
    859     /*
    860      * populate container
    861      */
     859    // populate container
    862860    DosWaitEventSem(hevTreeCnrScanComplete, SEM_INDEFINITE_WAIT);
    863861    DosResetEventSem(hevTreeCnrScanComplete, &ulScanPostCnt);
     
    11881186
    11891187    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
    11931189
    11941190      PCNRITEM pci = NULL;
     
    12621258    else {
    12631259      if (!dcd->hwndObject) {
    1264         /*
    1265          * first time through -- set things up
    1266          */
     1260        // first time through -- set things up
    12671261        CNRINFO cnri;
    12681262
     
    14611455            Win_Error(hwnd, hwnd, pszSrcFile, __LINE__,
    14621456                      PCSZ_DRGACCESSDRAGINFO);
    1463             return (MRFROM2SHORT(DOR_NODROP, 0));       /* Drop not valid */
     1457            return (MRFROM2SHORT(DOR_NODROP, 0));       // Drop not valid
    14641458          }
    14651459          pci = (PCNRITEM) ((PCNRDRAGINFO) mp2)->pRecord;
     
    15031497            }
    15041498          }
    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
    15121507            if (!pci || (INT) pci == -1)
    15131508              return MRFROM2SHORT(DOR_DROP, DO_MOVE);
     
    15171512            if (toupper(*pci->pszFileName) < 'C')
    15181513              return MRFROM2SHORT(DOR_DROP, DO_COPY);
    1519             return MRFROM2SHORT(DOR_DROP,       /* Return okay to drop */
     1514            return MRFROM2SHORT(DOR_DROP,               // Return okay to drop
    15201515                                ((fCopyDefault) ? DO_COPY : DO_MOVE));
    15211516          }
    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
    15251520
    15261521      case CN_INITDRAG:
     
    29172912          }
    29182913        }
    2919         /* else intentional fallthru */
     2914        // else intentional fallthru
    29202915      case IDM_ATTRS:
    29212916      case IDM_INFO:
     
    31033098      dcd->stopflag++;
    31043099    if (dcd && dcd->hwndObject) {
    3105       /* kill object window */
     3100      // kill object window
    31063101      if (WinIsWindow((HAB) 0, dcd->hwndObject)) {
    31073102        if (!PostMsg(dcd->hwndObject, WM_CLOSE, MPVOID, MPVOID))
     
    31503145HWND StartTreeCnr(HWND hwndParent, ULONG flags)
    31513146{
    3152   /* bitmapped flags:
     3147  /**
     3148   * bitmapped flags:
    31533149   * 0x00000001 = don't close app when window closes
    31543150   * 0x00000002 = no frame controls
Note: See TracChangeset for help on using the changeset viewer.