- Timestamp:
- Jan 8, 2001, 6:54:48 PM (25 years ago)
- Location:
- trunk/src/helpers
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/animate.c
r18 r21 65 65 /* 66 66 *@@category: Helpers\PM helpers\Animation helpers 67 * See animate.c. 67 68 */ 68 69 -
trunk/src/helpers/cctl_chart.c
r18 r21 81 81 /* 82 82 *@@category: Helpers\PM helpers\Window classes\Chart control 83 * See cctl_chart.c. 83 84 */ 84 85 -
trunk/src/helpers/cctl_checkcnr.c
r14 r21 81 81 /* 82 82 *@@category: Helpers\PM helpers\Window classes\Checkbox containers 83 * See cctl_checkcnr.c. 83 84 */ 84 85 -
trunk/src/helpers/cctl_progbar.c
r18 r21 81 81 /* 82 82 *@@category: Helpers\PM helpers\Window classes\Progress bars 83 * See cctl_progbar.c. 83 84 */ 84 85 -
trunk/src/helpers/cctl_splitwin.c
r14 r21 81 81 /* 82 82 *@@category: Helpers\PM helpers\Window classes\Split windows 83 * See cctl_splitwin.c. 83 84 */ 84 85 -
trunk/src/helpers/cctl_tooltip.c
r20 r21 81 81 /* 82 82 *@@category: Helpers\PM helpers\Window classes\Tooltips 83 * See cctl_tooltip.c. 83 84 */ 84 85 … … 1289 1290 // compose values for that msg 1290 1291 TOOLTIPTEXT ttt = {0}; 1291 _Pmpf(("TTM_GETTEXT: PSZ_TEXTCALLBACK "));1292 _Pmpf(("TTM_GETTEXT: PSZ_TEXTCALLBACK... sending TTN_NEEDTEXT")); 1292 1293 ttt.hwndTooltip = hwndTooltip; 1293 1294 ttt.hwndTool = pti->hwndTool; 1294 WinSendMsg(pti->hwndTool ,1295 WinSendMsg(pti->hwndToolOwner, 1295 1296 WM_CONTROL, 1296 1297 MPFROM2SHORT(pttd->ulTooltipID, // tooltip control wnd ID -
trunk/src/helpers/cnrh.c
r17 r21 63 63 64 64 /* 65 *@@category: Helpers\PM helpers\Container helpers 66 * See cnrh.c. 67 */ 68 69 /* 65 70 *@@category: Helpers\PM helpers\Container helpers\Details view helpers 71 * these functions aid you in setting up the FIELDINFO structures 72 * for a container Details view. Use cnrhSetFieldInfos for that. 66 73 */ 67 74 … … 343 350 /* 344 351 *@@category: Helpers\PM helpers\Container helpers\Record core helpers 352 * functions for allocating and inserting records more easily. 353 * 354 * Use cnrhAllocRecords first to allocate, then cnrhInsertRecords 355 * to insert the records. 345 356 */ 346 357 … … 742 753 /* 743 754 *@@category: Helpers\PM helpers\Container helpers\View management 755 * functions for easily managing container views. 756 * 757 * Most importantly, this has the BEGIN_CNRINFO and END_CNRINFO 758 * macros which make CNRINFO handling easier. Also see 759 * cnrhSetView for that. 744 760 */ 745 761 … … 812 828 * 813 829 * With fl, specify any or none of the following: 830 * 814 831 * -- FRFP_RIGHTSPLITWINDOW: test right split Details view 815 832 * instead of main cnr. 833 * 816 834 * -- FRFP_SCREENCOORDS: *pptl specifies the point to 817 835 * check in _screen_ coordinates, instead of … … 1310 1328 /* 1311 1329 *@@category: Helpers\PM helpers\Container helpers\Record relations/iteration 1330 * functions for querying the relation of records and 1331 * iterating through records. 1312 1332 */ 1313 1333 … … 1396 1416 // first call: get parent of precTest; 1397 1417 // subsequent calls: climb up 1398 precParentThis = WinSendMsg(hwndCnr,1399 CM_QUERYRECORD,1400 precParentThis,1401 MPFROM2SHORT(CMA_PARENT,1402 CMA_ITEMORDER));1418 precParentThis = (PRECORDCORE)WinSendMsg(hwndCnr, 1419 CM_QUERYRECORD, 1420 precParentThis, 1421 MPFROM2SHORT(CMA_PARENT, 1422 CMA_ITEMORDER)); 1403 1423 if (precParentThis == (PRECORDCORE)-1) 1404 1424 break; -
trunk/src/helpers/comctl.c
r14 r21 124 124 /* 125 125 *@@category: Helpers\PM helpers\Window classes\Menu buttons 126 * See comctl.c and ctlMakeMenuButton. 126 127 */ 127 128 … … 495 496 /* 496 497 *@@category: Helpers\PM helpers\Window classes\Static bitmaps 498 * See comctl.c and ctl_fnwpBitmapStatic. 497 499 */ 498 500 … … 978 980 /* 979 981 *@@category: Helpers\PM helpers\Window classes\Stretched bitmaps 982 * See comctl.c and ctlPrepareStretchedBitmap. 980 983 */ 981 984 … … 1061 1064 /* 1062 1065 *@@category: Helpers\PM helpers\Window classes\Hotkey entry field 1066 * See comctl.c and ctl_fnwpObjectHotkeyEntryField. 1063 1067 */ 1064 1068 -
trunk/src/helpers/datetime.c
r15 r21 54 54 /* 55 55 *@@category: Helpers\C helpers\Date/time helpers 56 * See datetime.c. 56 57 */ 57 58 -
trunk/src/helpers/debug.c
r14 r21 88 88 /* 89 89 *@@category: Helpers\Control program helpers\Exceptions/debugging 90 * See except.c and debug.c. 90 91 */ 91 92 -
trunk/src/helpers/dosh.c
r17 r21 73 73 /* 74 74 *@@category: Helpers\Control program helpers\Miscellaneous 75 * Miscellaneous helpers in dosh.c that didn't fit into any other 76 * category. 75 77 */ 76 78 … … 215 217 216 218 /* 217 *@@category: Helpers\Control program helpers\Memory management 219 *@@category: Helpers\Control program helpers\Shared memory management 220 * helpers for allocating and requesting shared memory. 218 221 */ 219 222 … … 286 289 /* 287 290 *@@category: Helpers\Control program helpers\Drive management 291 * functions for managing drives... enumerating, testing, 292 * querying etc. 288 293 */ 289 294 … … 1297 1302 /* 1298 1303 *@@category: Helpers\Control program helpers\Directory management 1304 * directory helpers (querying, creating, deleting etc.). 1299 1305 */ 1300 1306 … … 1534 1540 /* 1535 1541 *@@category: Helpers\Control program helpers\Module handling 1542 * helpers for importing functions from a module (DLL). 1536 1543 */ 1537 1544 … … 1591 1598 /* 1592 1599 *@@category: Helpers\Control program helpers\Performance (CPU load) helpers 1600 * helpers around DosPerfSysCall. 1593 1601 */ 1594 1602 … … 1852 1860 /* 1853 1861 *@@category: Helpers\Control program helpers\Process management 1862 * helpers for starting subprocesses. 1854 1863 */ 1855 1864 -
trunk/src/helpers/dosh2.c
r18 r21 346 346 /* 347 347 *@@category: Helpers\Control program helpers\Environment management 348 * helpers for managing those ugly environment string arrays 349 * that are used with DosStartSession and WinStartApp. 348 350 */ 349 351 … … 749 751 /* 750 752 *@@category: Helpers\Control program helpers\Executable info 753 * these functions can retrieve BLDLEVEL information from 754 * any executable module. See doshExecOpen. 751 755 */ 752 756 … … 1195 1199 /* 1196 1200 *@@category: Helpers\Control program helpers\Partitions info 1201 * functions for retrieving partition information directly 1202 * from the partition tables on the disk. See doshGetPartitionsList. 1197 1203 */ 1198 1204 -
trunk/src/helpers/eah.c
r14 r21 98 98 /* 99 99 *@@category: Helpers\Control program helpers\Extended attributes 100 * See eah.c. 100 101 */ 101 102 … … 404 405 /* 405 406 *@@category: Helpers\Control program helpers\Extended attributes\Translation helpers 407 * these functions are built on top of the regular EA helpers 408 * (see eah.c) to convert standard types to EAs. 406 409 */ 407 410 -
trunk/src/helpers/except.c
r15 r21 264 264 /* 265 265 *@@category: Helpers\Control program helpers\Exceptions/debugging 266 * See except.c. 266 267 */ 267 268 -
trunk/src/helpers/gpih.c
r18 r21 77 77 LONG DisplayCaps[CAPS_DEVICE_POLYSET_POINTS] = {0}; 78 78 BOOL fCapsQueried = FALSE; 79 80 /* 81 *@@category: Helpers\PM helpers\GPI helpers 82 * See gpih.c. 83 */ 79 84 80 85 /* -
trunk/src/helpers/level.c
r14 r21 50 50 /* 51 51 *@@category: Helpers\Control program helpers\SYSLEVEL parsing 52 * helpers for parsing SYSLEVEL files. See lvlOpenLevelFile. 52 53 */ 53 54 -
trunk/src/helpers/linklist.c
r17 r21 79 79 /* 80 80 *@@category: Helpers\C helpers\Linked lists 81 * See linklist.c. 81 82 */ 82 83 -
trunk/src/helpers/memdebug.c
r14 r21 131 131 /* 132 132 *@@category: Helpers\C helpers\Heap debugging 133 * See memdebug.c. 133 134 */ 134 135 -
trunk/src/helpers/shapewin.c
r14 r21 213 213 /* 214 214 *@@category: Helpers\PM helpers\Window classes\Shaped windows (transparency) 215 * see shapewin.c. 215 216 */ 216 217 -
trunk/src/helpers/stringh.c
r18 r21 59 59 /* 60 60 *@@category: Helpers\C helpers\String management 61 * See stringh.c and xstring.c. 62 */ 63 64 /* 65 *@@category: Helpers\C helpers\String management\C string helpers 66 * See stringh.c. 61 67 */ 62 68 … … 988 994 */ 989 995 990 PSZ strhFindEOL( PSZ pszSearchIn, // in: where to search996 PSZ strhFindEOL(const char *pcszSearchIn, // in: where to search 991 997 PULONG pulOffset) // out: offset (ptr can be NULL) 992 998 { 993 PSZ p = pszSearchIn,994 prc = NULL;999 const char *p = pcszSearchIn, 1000 *prc = 0; 995 1001 while (TRUE) 996 1002 { … … 1004 1010 1005 1011 if (pulOffset) 1006 *pulOffset = prc - pszSearchIn; 1007 return (prc); 1012 *pulOffset = prc - pcszSearchIn; 1013 1014 return ((PSZ)prc); 1008 1015 } 1009 1016 -
trunk/src/helpers/syssound.c
r18 r21 96 96 /* 97 97 *@@category: Helpers\Profile (INI) helpers\System sounds 98 * see syssound.c. 98 99 */ 99 100 -
trunk/src/helpers/textv_html.c
r14 r21 56 56 /* 57 57 *@@category: Helpers\PM helpers\Window classes\XTextView control\HTML conversion 58 * see textv_html.c. 58 59 */ 59 60 … … 2060 2061 ULONG cbSource = strlen(*ppszText); 2061 2062 2063 XHTMLDATA xhtmlTemp = {0}; 2064 BOOL fUsingTemp = FALSE; 2062 2065 COPYTARGET ct = {0}; 2063 2066 … … 2069 2072 ct.fSkipNextSpace = TRUE; 2070 2073 ct.pxhtml = (PXHTMLDATA)pxhtml; 2074 if (ct.pxhtml == NULL) // not specified: 2075 { 2076 ct.pxhtml = &xhtmlTemp; 2077 fUsingTemp = TRUE; 2078 } 2079 2080 lstInit(&ct.pxhtml->llLinks, TRUE); // auto-free 2071 2081 2072 2082 // step 2: … … 2218 2228 lstClear(&ct.llLists); 2219 2229 2230 if (fUsingTemp) 2231 { 2232 if (xhtmlTemp.pszTitle) 2233 free(xhtmlTemp.pszTitle); 2234 lstClear(&xhtmlTemp.llLinks); 2235 // ### better really clear this... there are PSZ's inside 2236 } 2237 2220 2238 return (brc); 2221 2239 } -
trunk/src/helpers/threads.c
r19 r21 6 6 * message queue which is created automatically. 7 7 * 8 * See thrCreate() for how to start such a thread. 9 * 8 10 * Usage: All OS/2 programs. 9 11 * … … 13 15 * This file is new with V0.81 and contains all the thread 14 16 * functions that used to be in helpers.c. 15 *16 * Use thrCreate() to start a thread.17 17 * 18 18 * Note: Version numbering in this file relates to XWorkplace version … … 56 56 /* 57 57 *@@category: Helpers\Control program helpers\Thread management 58 * see threads.c. 58 59 */ 59 60 -
trunk/src/helpers/timer.c
r19 r21 91 91 /* 92 92 *@@category: Helpers\PM helpers\Timer replacements 93 * see timer.c. 93 94 */ 94 95 -
trunk/src/helpers/tmsgfile.c
r14 r21 84 84 /* 85 85 *@@category: Helpers\Control program helpers\Text message files (TMF) 86 * see tmsgfile.c. 86 87 */ 87 88 -
trunk/src/helpers/tree.c
r14 r21 102 102 /* 103 103 *@@category: Helpers\C helpers\Red-black balanced binary trees 104 * See tree.c. 104 105 */ 105 106 -
trunk/src/helpers/winh.c
r18 r21 2469 2469 * wrapper around WinStartApp which fixes the 2470 2470 * specified PROGDETAILS to (hopefully) work 2471 * work with all executable types :2472 * 2473 * 1.This fixes the executable info to support:2474 * 2475 * 2476 * 2477 * 2478 * 2479 * 2480 * 2481 * 2. Handles and merges special and default2482 * 2483 * 2484 * 2485 * 2486 * 2487 * 2471 * work with all executable types. 2472 * 2473 * This fixes the executable info to support: 2474 * 2475 * -- starting "*" executables (command prompts 2476 * for OS/2, DOS, Win-OS/2); 2477 * 2478 * -- starting ".CMD" and ".BAT" files as 2479 * PROGDETAILS.pszExecutable. 2480 * 2481 * This also handles and merges special and default 2482 * environments for the app to be started. 2483 * If PROGDETAILS.pszEnvironment is empty 2484 * and the application is a Win-OS/2 app, 2485 * this uses the default Win-OS/2 settings 2486 * as specified in the "Win-OS/2" WPS settings 2487 * object. 2488 2488 * 2489 2489 * Even though this isn't clearly said in PMREF, -
trunk/src/helpers/wphandle.c
r14 r21 69 69 /* 70 70 *@@category: Helpers\PM helpers\Workplace Shell\Handles (OS2SYS.INI) 71 * See wphandle.c. 71 72 */ 72 73 -
trunk/src/helpers/xprf.c
r14 r21 109 109 /* 110 110 *@@category: Helpers\Profile (INI) replacement functions 111 * See xprf.c. 111 112 */ 112 113 -
trunk/src/helpers/xstring.c
r18 r21 113 113 114 114 /* 115 *@@category: Helpers\C helpers\String management 115 *@@category: Helpers\C helpers\String management\XStrings (with memory management) 116 * See xstring.c. 116 117 */ 117 118 … … 240 241 free(pxstr->psz); 241 242 memset(pxstr, 0, sizeof(XSTRING)); 243 } 244 245 /* 246 *@@ xstrReserve: 247 * this function makes sure that the specified 248 * XSTRING has at least ulBytes bytes allocated. 249 * 250 * This function is useful if you plan to do 251 * a lot of string replacements or appends and 252 * want to avoid that the buffer is reallocated 253 * with each operation. Before those operations, 254 * call this function to make room for the operations. 255 * 256 * If ulBytes is smaller than the current allocation, 257 * this function does nothing. 258 * 259 * The XSTRING must be initialized before the 260 * call. 261 * 262 * Returns the new total no. of allocated bytes. 263 * 264 *@@added V0.9.7 (2001-01-07) [umoeller] 265 */ 266 267 ULONG xstrReserve(PXSTRING pxstr, 268 ULONG ulBytes) 269 { 270 ULONG cbNeeded = ulBytes; 271 272 if (cbNeeded > pxstr->cbAllocated) 273 { 274 // we need more memory than we have previously 275 // allocated: 276 if (pxstr->cbAllocated) 277 // appendee already had memory: 278 // reallocate 279 pxstr->psz = (PSZ)realloc(pxstr->psz, 280 cbNeeded); 281 else 282 { 283 // appendee has no memory: 284 pxstr->psz = (PSZ)malloc(cbNeeded); 285 *(pxstr->psz) = 0; 286 } 287 288 pxstr->cbAllocated = cbNeeded; 289 // ulLength is unchanged 290 } 291 292 return (pxstr->cbAllocated); 242 293 } 243 294
Note:
See TracChangeset
for help on using the changeset viewer.