Changeset 3154 for trunk/src/comctl32/comctl32undoc.cpp
- Timestamp:
- Mar 18, 2000, 5:17:35 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/comctl32undoc.cpp
r2875 r3154 1 /* $Id: comctl32undoc.cpp,v 1. 1 2000-02-23 17:09:40cbratschi Exp $ */1 /* $Id: comctl32undoc.cpp,v 1.2 2000-03-18 16:17:22 cbratschi Exp $ */ 2 2 /* 3 3 * Undocumented functions from COMCTL32.DLL … … 13 13 14 14 /* 15 - Corel 20000 212level16 - WINE 20000130 level15 - Corel 20000317 level 16 - (WINE 20000130 level) 17 17 */ 18 18 … … 764 764 LPVOID pSrc; 765 765 766 dprintf (("COMCTL32: DSA_GetItem"));766 dprintf2(("COMCTL32: DSA_GetItem")); 767 767 768 768 if (!hdsa) … … 797 797 LPVOID pSrc; 798 798 799 dprintf (("COMCTL32: DSA_GetItemPtr"));799 dprintf2(("COMCTL32: DSA_GetItemPtr")); 800 800 801 801 if (!hdsa) … … 833 833 LPVOID pDest, lpTemp; 834 834 835 dprintf (("COMCTL32: DSA_SetItem"));835 dprintf2(("COMCTL32: DSA_SetItem")); 836 836 837 837 if ((!hdsa) || nIndex < 0) … … 890 890 LPDWORD p; 891 891 892 dprintf (("COMCTL32: DSA_InsertItem"));892 dprintf2(("COMCTL32: DSA_InsertItem")); 893 893 894 894 if ((!hdsa) || nIndex < 0) … … 959 959 INT nSize; 960 960 961 dprintf (("COMCTL32: DSA_DeleteItem"));961 dprintf2(("COMCTL32: DSA_DeleteItem")); 962 962 963 963 if (!hdsa) … … 1200 1200 DPA_GetPtr (const HDPA hdpa, INT i) 1201 1201 { 1202 dprintf (("COMCTL32: DPA_GetPtr"));1202 dprintf2(("COMCTL32: DPA_GetPtr")); 1203 1203 1204 1204 if (!hdpa) … … 1234 1234 INT i; 1235 1235 1236 dprintf (("COMCTL32: DPA_GetPtrIndex"));1236 dprintf2(("COMCTL32: DPA_GetPtrIndex")); 1237 1237 1238 1238 if (!hdpa->ptrs) … … 1269 1269 LPVOID *lpTemp, *lpDest; 1270 1270 1271 dprintf (("COMCTL32: DPA_InsertPtr"));1271 dprintf2(("COMCTL32: DPA_InsertPtr")); 1272 1272 1273 1273 if ((!hdpa) || (i < 0)) … … 1341 1341 LPVOID *lpTemp; 1342 1342 1343 dprintf (("COMCTL32: DPA_SetPtr"));1343 dprintf2(("COMCTL32: DPA_SetPtr")); 1344 1344 1345 1345 if ((!hdpa) || i < 0) … … 1395 1395 INT nSize; 1396 1396 1397 dprintf (("COMCTL32: DPA_DeletePtr"));1397 dprintf2(("COMCTL32: DPA_DeletePtr")); 1398 1398 1399 1399 if ((!hdpa) || i < 0 || i >= hdpa->nItemCount) … … 1479 1479 * RETURNS 1480 1480 * NONE 1481 * 1482 * NOTES: 1483 * Reverted back to the orginal quick sort, because the existing sort did not sort. 1484 * Kudos to the orginal author of the quick sort. 1481 1485 */ 1482 1486 … … 1492 1496 i = l; 1493 1497 j = r; 1494 1495 if ( i >= j ) 1496 return; 1497 else if ( i == (j - 1) ) 1498 { 1499 if ( (pfnCompare)( lpPtrs[i], lpPtrs[j], lParam ) > 0 ) 1498 v = lpPtrs[(int)(l+r)/2]; 1499 do { 1500 while ((pfnCompare)(lpPtrs[i], v, lParam) < 0) i++; 1501 while ((pfnCompare)(lpPtrs[j], v, lParam) > 0) j--; 1502 if (i <= j) 1500 1503 { 1501 t = lpPtrs[i];1502 lpPtrs[i] = lpPtrs[j];1503 lpPtrs[j] = t;1504 }1505 return;1506 }1507 1508 v = lpPtrs[(int)(l+r)/2];1509 1510 while ( i < j)1511 {1512 while ( (pfnCompare)( lpPtrs[i], v, lParam ) <= 0 && i < j )1513 i++;1514 1515 while ( (pfnCompare)( v, lpPtrs[j], lParam ) <= 0 && i < j )1516 j--;1517 1518 if ( i < j )1519 {1520 /* Swap the values; increment i and decrement j to avoid1521 infinite conditions where i and j swap forever */1522 1504 t = lpPtrs[i]; 1523 1505 lpPtrs[i++] = lpPtrs[j]; 1524 1506 lpPtrs[j--] = t; 1525 1507 } 1526 } 1527 1528 if ( i - 1 > l ) 1529 DPA_QuickSort (lpPtrs, l, i - 1, pfnCompare, lParam); 1530 if ( j + 1 < r ) 1531 DPA_QuickSort (lpPtrs, j + 1, r, pfnCompare, lParam); 1508 } while (i <= j); 1509 if (l < j) DPA_QuickSort (lpPtrs, l, j, pfnCompare, lParam); 1510 if (i < r) DPA_QuickSort (lpPtrs, i, r, pfnCompare, lParam); 1532 1511 } 1533 1512
Note:
See TracChangeset
for help on using the changeset viewer.