Changeset 20
- Timestamp:
- Jan 5, 2001, 11:15:28 PM (25 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/comctl.h
r19 r20 480 480 HWND hwndToolOwner; 481 481 // in: handle to the window that contains the tool. If 482 // lpszText includes the LPSTR_TEXTCALLBACK value, this482 // lpszText includes the PSZ_TEXTCALLBACK value, this 483 483 // member identifies the window that receives TTN_NEEDTEXT 484 484 // notification messages. … … 591 591 /* 592 592 *@@ TTN_NEEDTEXT: 593 * control notification sent with the WM_NOTIFY (Win95) 594 * and WM_CONTROL (OS/2) messages. 595 * 596 * Parameters (OS/2, incompatible with Win95): 597 * -- mp1 USHORT usID; 598 * USHORT usNotifyCode == TTN_NEEDTEXT 593 * notification code used with WM_CONTROL when a tooltip 594 * needs a tooltip text for a tool. 595 * 596 * Parameters: 597 * 598 * -- SHORT1FROMMP(mp1) usID: ID of the tooltip control). 599 * 600 * -- SHORT2FROMMP(mp1) usNotifyCode: TTN_NEEDTEXT. 601 * 599 602 * -- PTOOLTIPTEXT mp2: pointer to a TOOLTIPTEXT structure. 600 * The hdr member identifies the tool for which text is needed. The 601 * receiving window can specify the string by taking one of the 602 * following actions: 603 * -- Copying the text to the buffer specified by the szText member. 604 * -- Copying the address of the buffer that contains the text to the 605 * lpszText member. 606 * -- Copying the identifier of a string resource to the lpszText 607 * member and copying the handle of the instance that contains 608 * the resource to the hinst member. 603 * hwndTool identifies the tool for which text is needed. 609 604 * 610 605 * This notification message is sent to the window specified 611 * in the hwnd member of the TOOLINFO structure for the tool.612 * This notification is sent only if the LPSTR_TEXTCALLBACK606 * in the hwndToolOwner member of the TOOLINFO structure for the tool. 607 * This notification is sent only if the PSZ_TEXTCALLBACK 613 608 * value is specified when the tool is added to a tooltip control. 614 609 * 615 * Windows 95 only: When a TTN_NEEDTEXT notification is received, 616 * the application can set or clear the TTF_RTLREADING value 617 * in the uFlags member of the TOOLTIPTEXT structure pointed to 618 * by lpttt as required. This is the only flag that can be changed 619 * during the notification callback. 620 * 621 * OS/2 only: Specifying LPSTR_TEXTCALLBACK in TOOLINFO.lpszText 622 * with TTM_ADDTOOL is the only way under OS/2 to have strings 623 * displayed which are longer than 256 characters, since string 624 * resources are limited to 256 characters with OS/2. It is the 625 * responsibility of the application to set the lpszText member 626 * to a static string buffer which holds the string for the tool. 627 * A common error would be to have that member point to some 628 * variable which has only been allocated on the stack. 610 * To specify the text, the target window (hwndToolOwner) must: 611 * 612 * 1. Set TOOLTIPTEXT.ulFormat to one of the format flags. 613 * 614 * 2. Fill the corresponding field(s) in TOOLTIPTEXT. 615 * 616 * Specifying PSZ_TEXTCALLBACK in TOOLINFO.lpszText with 617 * TTM_ADDTOOL is the only way under OS/2 to have strings 618 * displayed which are longer than 256 characters, since 619 * string resources are limited to 256 characters with OS/2. 620 * It is the responsibility of the application to set the 621 * pszText member to a _static_ string buffer which holds 622 * the string for the tool. A common error would be to have 623 * that member point to some variable which has only been 624 * allocated on the stack... this will lead to problems. 629 625 */ 630 626 -
trunk/include/helpers/linklist.h
r17 r20 58 58 /* 59 59 *@@ LISTNODE: 60 * new with V0.9.0. This now defines 61 * one item in the list. 62 * pItemData points to the actual data. 60 * this defines one item in a LINKLIST. 61 * 62 * pItemData points to the actual data, 63 * whatever format this is in... 64 * 65 * See linklist.c for more on how 66 * to use these. 63 67 * 64 68 *@@added V0.9.0 … … 74 78 /* 75 79 *@@ LINKLIST: 76 * new with V0.9.0. This now defines77 80 * the "root" of a linked list. 81 * 82 * See linklist.c for more on how 83 * to use these. 78 84 * 79 85 *@@added V0.9.0 -
trunk/include/helpers/prfh.h
r14 r20 77 77 *@@ COUNTRYSETTINGS: 78 78 * structure used for returning country settings 79 * with prf QueryCountrySettings.79 * with prfhQueryCountrySettings. 80 80 */ 81 81 -
trunk/src/helpers/cctl_tooltip.c
r19 r20 1276 1276 * Return value: 0 always. 1277 1277 * 1278 * Additional note: On input, if TOOLINFO.lpszText == LPSTR_TEXTCALLBACK,1278 * Additional note: On input, if TOOLINFO.lpszText == PSZ_TEXTCALLBACK, 1279 1279 * this sends the TTN_NEEDTEXT notification to TOOLINFO.hwnd. 1280 1280 */ … … 1289 1289 // compose values for that msg 1290 1290 TOOLTIPTEXT ttt = {0}; 1291 _Pmpf(("TTM_GETTEXT: LPSTR_TEXTCALLBACK"));1291 _Pmpf(("TTM_GETTEXT: PSZ_TEXTCALLBACK")); 1292 1292 ttt.hwndTooltip = hwndTooltip; 1293 1293 ttt.hwndTool = pti->hwndTool;
Note:
See TracChangeset
for help on using the changeset viewer.