Ignore:
Timestamp:
Dec 16, 2000, 10:09:53 PM (25 years ago)
Author:
umoeller
Message:

Miscellanous updates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/cnrh.c

    r15 r17  
    13761376
    13771377/*
     1378 *@@ cnrhIsChildOf:
     1379 *      returns TRUE only if precTest is a child record
     1380 *      of precParent in a tree view.
     1381 *
     1382 *@@added V0.9.7 (2000-12-13) [umoeller]
     1383 */
     1384
     1385BOOL cnrhIsChildOf(HWND hwndCnr,
     1386                   PRECORDCORE precTest,        // in: recc to test
     1387                   PRECORDCORE precParent)      // in: parent to test
     1388{
     1389    BOOL brc = FALSE;
     1390    if ((precTest) && (precParent))
     1391    {
     1392        PRECORDCORE precParentThis = precTest;
     1393
     1394        while (precParentThis)
     1395        {
     1396            // first call: get parent of precTest;
     1397            // subsequent calls: climb up
     1398            precParentThis = WinSendMsg(hwndCnr,
     1399                                        CM_QUERYRECORD,
     1400                                        precParentThis,
     1401                                        MPFROM2SHORT(CMA_PARENT,
     1402                                                     CMA_ITEMORDER));
     1403            if (precParentThis == (PRECORDCORE)-1)
     1404                break;
     1405            else
     1406                if (precParentThis == precParent)
     1407                {
     1408                    brc = TRUE;
     1409                    break;
     1410                }
     1411        }
     1412    }
     1413
     1414    return (brc);
     1415}
     1416
     1417/*
    13781418 *@@ cnrhForAllRecords:
    13791419 *      this monster function calls pfnwpCallback
     
    16631703 *
    16641704 *          Note: You must intercept CN_DROPNOTIFY in your window proc
    1665  *          to clean up resources later.
     1705 *          to clean up resources later. For this, call:
     1706 *
     1707 +              DrgDeleteDraginfoStrHandles(pdrgInfo);
     1708 +              DrgFreeDraginfo(pdrgInfo);
    16661709 *
    16671710 *      2)  However, if (usNotifyCode == CN_INITDRAG), we will start
     
    16691712 *          will _not_ return until the object has been dropped or d'n'd
    16701713 *          has been cancelled. PM establishes another message loop
    1671  *          internally for this.
     1714 *          internally for this. In this case, this function managed
     1715 *          cleanup automatically.
    16721716 *
    16731717 *      This function supports one single record core only. The following
Note: See TracChangeset for help on using the changeset viewer.