Changeset 840


Ignore:
Timestamp:
Mar 18, 2011, 10:45:50 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

xsystray: Finished r837.

Location:
trunk/src/3rdparty/os2/xsystray/apilib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/3rdparty/os2/xsystray/apilib/xsystray.c

    r839 r840  
    242242}
    243243
    244 BOOL xstQuerySysTrayVersion(PULONG pulMajor,    // out: major version number
    245                             PULONG pulMinor,    // out: minor version number
    246                             PULONG pulRevision) // out: revision number
     244BOOL xstQuerySysTrayVersion(PULONG pulMajor,
     245                            PULONG pulMinor,
     246                            PULONG pulRevision)
    247247{
    248248    BOOL brc;
     
    270270}
    271271
    272 BOOL xstAddSysTrayIcon(HWND hwnd,       // in: window handle associated with the icon
    273                        USHORT usId,     // in: icon ID to add
    274                        HPOINTER hIcon,  // in: icon handle
    275                        PCSZ pcszToolTip,// in: tooltip text
    276                        ULONG ulMsgId,   // in: message ID for notifications
    277                        ULONG ulFlags)   // in: flags (not currently used, must be 0)
     272BOOL xstAddSysTrayIcon(HWND hwnd,
     273                       USHORT usId,
     274                       HPOINTER hIcon,
     275                       PCSZ pcszToolTip,
     276                       ULONG ulMsgId,
     277                       ULONG ulFlags)
    278278{
    279279    BOOL    brc;
     
    388388}
    389389
    390 BOOL xstReplaceSysTrayIcon(HWND hwnd,        // in: window handle associated with the icon
    391                            USHORT usId,      // in: icon ID to change
    392                            HPOINTER hIcon)   // in: new icon handle
     390BOOL xstReplaceSysTrayIcon(HWND hwnd,
     391                           USHORT usId,
     392                           HPOINTER hIcon)
    393393{
    394394    BOOL    brc;
     
    421421}
    422422
    423 BOOL xstRemoveSysTrayIcon(HWND hwnd,    // in: window handle associated with the icon
    424                           USHORT usId)  // in: icon ID to remove
     423BOOL xstRemoveSysTrayIcon(HWND hwnd,
     424                          USHORT usId)
    425425{
    426426    BOOL brc;
     
    469469}
    470470
    471 BOOL xstSetSysTrayIconToolTip(HWND hwnd,        // in: window handle associated with the icon
    472                               USHORT usId,      // in: icon ID to set the tooltip for
    473                               PCSZ pcszToolTip) // in: tooltip text
     471BOOL xstSetSysTrayIconToolTip(HWND hwnd,
     472                              USHORT usId,
     473                              PCSZ pcszToolTip)
    474474{
    475475    BOOL brc;
  • trunk/src/3rdparty/os2/xsystray/apilib/xsystray.h

    r838 r840  
    108108 */
    109109
    110 XSTAPI(BOOL, xstQuerySysTrayVersion)(PULONG pulMajor, PULONG pulMinor,
    111                                      PULONG pulRevision);
     110XSTAPI(BOOL, xstQuerySysTrayVersion)
     111    (PULONG pulMajor,     // out: major version number
     112     PULONG pulMinor,     // out: minor version number
     113     PULONG pulRevision); // out: revision number
    112114
    113115/*
     
    152154 */
    153155
    154 XSTAPI(BOOL, xstAddSysTrayIcon)(HWND hwnd, USHORT usId, HPOINTER hIcon,
    155                                 PCSZ pcszToolTip, ULONG ulMsgId, ULONG ulFlags);
     156XSTAPI(BOOL, xstAddSysTrayIcon)
     157    (HWND hwnd,       // in: window handle associated with the icon
     158     USHORT usId,     // in: icon ID to add
     159     HPOINTER hIcon,  // in: icon handle
     160     PCSZ pcszToolTip,// in: tooltip text
     161     ULONG ulMsgId,   // in: message ID for notifications
     162     ULONG ulFlags);  // in: flags (not currently used, must be 0)
    156163
    157164/*
     
    164171 */
    165172
    166 XSTAPI(BOOL, xstReplaceSysTrayIcon)(HWND hwnd, USHORT usId, HPOINTER hIcon);
     173XSTAPI(BOOL, xstReplaceSysTrayIcon)
     174    (HWND hwnd,       // in: window handle associated with the icon
     175     USHORT usId,     // in: icon ID to change
     176     HPOINTER hIcon); // in: new icon handle
    167177
    168178/*
     
    175185 */
    176186
    177 XSTAPI(BOOL, xstRemoveSysTrayIcon)(HWND hwnd, USHORT usId);
     187XSTAPI(BOOL, xstRemoveSysTrayIcon)
     188    (HWND hwnd,    // in: window handle associated with the icon
     189     USHORT usId); // in: icon ID to remove
    178190
    179191/*
     
    194206 */
    195207
    196 XSTAPI(BOOL, xstSetSysTrayIconToolTip)(HWND hwnd, USHORT usId, PCSZ pcszToolTip);
     208XSTAPI(BOOL, xstSetSysTrayIconToolTip)
     209    (HWND hwnd,         // in: window handle associated with the icon
     210     USHORT usId,       // in: icon ID to set the tooltip for
     211     PCSZ pcszToolTip); // in: tooltip text
    197212
    198213/*
     
    203218
    204219XSTAPI(BOOL, xstShowSysTrayIconBalloon)(HWND hwnd, USHORT usId, PCSZ pcszTitle,
    205                                       PCSZ pcszText, ULONG ulFlags,
    206                                       ULONG ulTimeout);
     220                                      PCSZ pcszText, ULONG ulFlags,
     221                                      ULONG ulTimeout);
    207222
    208223/*
     
    223238 */
    224239
    225 XSTAPI(BOOL, xstQuerySysTrayIconRect)(HWND hwnd, USHORT usId, PRECTL prclRect);
     240XSTAPI(BOOL, xstQuerySysTrayIconRect)
     241    (HWND hwnd,        // in: window handle associated with the icon
     242     USHORT usId,      // in: icon ID to query the rectangle for
     243     PRECTL prclRect); // out: where to store the returned rectangle
    226244
    227245/*
Note: See TracChangeset for help on using the changeset viewer.