Changeset 20


Ignore:
Timestamp:
Jan 5, 2001, 11:15:28 PM (25 years ago)
Author:
umoeller
Message:

Updated tooltips.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/comctl.h

    r19 r20  
    480480        HWND    hwndToolOwner;
    481481                    // in: handle to the window that contains the tool. If
    482                     // lpszText includes the LPSTR_TEXTCALLBACK value, this
     482                    // lpszText includes the PSZ_TEXTCALLBACK value, this
    483483                    // member identifies the window that receives TTN_NEEDTEXT
    484484                    // notification messages.
     
    591591    /*
    592592     *@@ 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     *
    599602     *      -- 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.
    609604     *
    610605     *      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_TEXTCALLBACK
     606     *      in the hwndToolOwner member of the TOOLINFO structure for the tool.
     607     *      This notification is sent only if the PSZ_TEXTCALLBACK
    613608     *      value is specified when the tool is added to a tooltip control.
    614609     *
    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.
    629625     */
    630626
  • trunk/include/helpers/linklist.h

    r17 r20  
    5858    /*
    5959     *@@ 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.
    6367     *
    6468     *@@added V0.9.0
     
    7478    /*
    7579     *@@ LINKLIST:
    76      *      new with V0.9.0. This now defines
    7780     *      the "root" of a linked list.
     81     *
     82     *      See linklist.c for more on how
     83     *      to use these.
    7884     *
    7985     *@@added V0.9.0
  • trunk/include/helpers/prfh.h

    r14 r20  
    7777     *@@ COUNTRYSETTINGS:
    7878     *      structure used for returning country settings
    79      *      with prfQueryCountrySettings.
     79     *      with prfhQueryCountrySettings.
    8080     */
    8181
  • trunk/src/helpers/cctl_tooltip.c

    r19 r20  
    12761276             *      Return value: 0 always.
    12771277             *
    1278              *      Additional note: On input, if TOOLINFO.lpszText == LPSTR_TEXTCALLBACK,
     1278             *      Additional note: On input, if TOOLINFO.lpszText == PSZ_TEXTCALLBACK,
    12791279             *      this sends the TTN_NEEDTEXT notification to TOOLINFO.hwnd.
    12801280             */
     
    12891289                    // compose values for that msg
    12901290                    TOOLTIPTEXT ttt = {0};
    1291                     _Pmpf(("TTM_GETTEXT: LPSTR_TEXTCALLBACK"));
     1291                    _Pmpf(("TTM_GETTEXT: PSZ_TEXTCALLBACK"));
    12921292                    ttt.hwndTooltip = hwndTooltip;
    12931293                    ttt.hwndTool = pti->hwndTool;
Note: See TracChangeset for help on using the changeset viewer.