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

Updated tooltips.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.