Changeset 265 for trunk/src/3rdparty/os2


Ignore:
Timestamp:
Oct 29, 2009, 2:13:16 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

3rdparty: os2/xsystray: Implemented adding an icon to the system tray (one icon so far) and automatically removing it if the associated window gets destroyed w/o doing so (for example, as a result of unexpected application termination).

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

Legend:

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

    r256 r265  
    7676
    7777// primitive debug logging to a file
    78 #if 1
     78#if
    7979static void __LOG_WORKER(const char *fmt, ...)
    8080{
     
    133133typedef struct
    134134{
     135
     136
     137
     138
     139
     140
    135141    PICONDATA   pIcons;
    136142                // array of icons currently shown in the system tray
    137                 // (left to right)
    138143    size_t      cIcons;
    139144                // number of icons in the pIcons array
     
    143148} SYSTRAYDATA, *PSYSTRAYDATA;
    144149
    145 ULONG QWL_USER_SERVER_DATA = 0;
     150static ULONG QWL_USER_SERVER_DATA = 0;
     151             // offset to the PXCENTERWIDGET pointer in the widget data array
     152
     153#define TID_CHECKALIVE          1
     154         // check alive timer
     155#define TID_CHECKALIVE_TIMEOUT  1000 // ms
     156         // how often to check if windows associated with icons are still alive
    146157
    147158/* ******************************************************************
     
    240251/* ******************************************************************
    241252 *
     253
     254
     255
     256
     257
     258
     259
     260
     261
     262
     263
     264
     265
     266
     267
     268
     269
     270
     271
     272
     273
     274
     275
     276
    242277 *   PM window class implementation
    243278 *