Ignore:
Timestamp:
Mar 18, 2011, 2:28:54 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

xsystray: Moved instant API documentation from .c to xsystray.h and bumped the version number to 0.1.1 due to r836.

File:
1 edited

Legend:

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

    r835 r837  
    1313 *      Refer to the "API" file for more details about the public API.
    1414 *
    15  *      Copyright (C) 2009 Dmitry A. Kuminov
     15 *      Copyright (C) 2009 Kuminov
    1616 *
    1717 *      This file is part of the Extended system tray widget source package.
     
    8181} XSTWHEELMSG, *PXSTWHEELMSG;
    8282
     83
     84
     85
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
     96
     97
     98
    8399BOOL XSTAPI xstQuerySysTrayVersion(PULONG pulMajor, PULONG pulMinor,
    84100                                   PULONG pulRevision);
    85                                    
     101
     102/*
     103 *@@ xstAddSysTrayIcon:
     104 *
     105 *      Adds an icon for the given window handle to the system tray. The icon ID
     106 *      is used to distinguish between several icons for the same window handle.
     107 *      If the icon with the specified ID already exists in the system tray, it
     108 *      will be replaced.
     109 *
     110 *      Returns TRUE on success and FALSE otherwise.
     111 *
     112 *      The specified window handle receives notification messages about icon
     113 *      events using the message ID specified by the ulMsgId parameter. The
     114 *      layout of the message parameters is as follows:
     115 *
     116 *          param1
     117 *              USHORT  usIconID        icon ID
     118 *              USHORT  usNotifyCode    notify code, one of XST_IN_ constants
     119 *
     120 *          param2
     121 *              PVOID   pData           notify code specific data (see below)
     122 *
     123 *      The following notify codes are currently recognized:
     124 *
     125 *          XST_IN_MOUSE:
     126 *              Mouse event in the icon area. Currently, only mouse click
     127 *              messages are recognized. param2 is a pointer to the XSTMOUSEMSG
     128 *              structure containing full mouse message details.
     129 *
     130 *          XST_IN_CONTEXT:
     131 *              Context menu event in the icon area. param2 is a pointer to the
     132 *              XSTCONTEXTMSG structure containing full message details.
     133 *
     134 *          XST_IN_WHEEL:
     135 *              Mouse wheel event in the icon area. param2 is a pointer to the
     136 *              XSTWHEELTMSG structure containing full message details.
     137 *
     138 *      NOTE: The maximum tooltip text length (including terminating null) is
     139 *      limited to a value returned by xstGetSysTrayMaxTextLen(). If the
     140 *      supplied string is longer, it will be truncated.
     141 */
     142
    86143BOOL XSTAPI xstAddSysTrayIcon(HWND hwnd, USHORT usId, HPOINTER hIcon,
    87144                              PCSZ pcszToolTip, ULONG ulMsgId, ULONG ulFlags);
    88                                
     145
     146/*
     147 *@@ xstReplaceSysTrayIcon:
     148 *
     149 *      Replaces the existing icon previously added by xstAddSysTrayIcon() with
     150 *      a new icon.
     151 *
     152 *      Returns TRUE on success and FALSE otherwise.
     153 */
     154
    89155BOOL XSTAPI xstReplaceSysTrayIcon(HWND hwnd, USHORT usId, HPOINTER hIcon);
    90156
     157
     158
     159
     160
     161
     162
     163
     164
     165
    91166BOOL XSTAPI xstRemoveSysTrayIcon(HWND hwnd, USHORT usId);
    92167
     168
     169
     170
     171
     172
     173
     174
     175
     176
     177
     178
     179
     180
     181
     182
     183
     184
    93185BOOL XSTAPI xstSetSysTrayIconToolTip(HWND hwnd, USHORT usId, PCSZ pcszToolTip);
     186
     187
     188
     189
     190
     191
    94192
    95193BOOL XSTAPI xstShowSysTrayIconBalloon(HWND hwnd, USHORT usId, PCSZ pcszTitle,
     
    97195                                      ULONG ulTimeout);
    98196
     197
     198
     199
     200
     201
     202
    99203BOOL XSTAPI xstHideSysTrayIconBalloon(HWND hwnd, USHORT usId);
    100204
     205
     206
     207
     208
     209
     210
     211
     212
     213
    101214BOOL XSTAPI xstQuerySysTrayIconRect(HWND hwnd, USHORT usId, PRECTL prclRect);
    102215
     216
     217
     218
     219
     220
     221
     222
     223
     224
     225
     226
     227
    103228ULONG XSTAPI xstGetSysTrayCreatedMsgId();
     229
     230
     231
     232
     233
     234
     235
     236
     237
     238
     239
     240
     241
     242
     243
     244
     245
     246
    104247
    105248ULONG XSTAPI xstGetSysTrayMaxTextLen();
Note: See TracChangeset for help on using the changeset viewer.