Changeset 17 for trunk/src/helpers/cnrh.c
- Timestamp:
- Dec 16, 2000, 10:09:53 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/cnrh.c
r15 r17 1376 1376 1377 1377 /* 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 1385 BOOL 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 /* 1378 1418 *@@ cnrhForAllRecords: 1379 1419 * this monster function calls pfnwpCallback … … 1663 1703 * 1664 1704 * 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); 1666 1709 * 1667 1710 * 2) However, if (usNotifyCode == CN_INITDRAG), we will start … … 1669 1712 * will _not_ return until the object has been dropped or d'n'd 1670 1713 * 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. 1672 1716 * 1673 1717 * This function supports one single record core only. The following
Note:
See TracChangeset
for help on using the changeset viewer.