Re: System tray integration take 5
22 Jul
2003
22 Jul
'03
2:52 a.m.
Mike Hearn <mike(a)theoretic.com> writes:
+#define MAX_TRAY_ICONS 256 +int undockedTrayIconsCount = 0; +static HWND undockedTrayIcons[MAX_TRAY_ICONS]; /* stores HWNDs of undocked tray windows when a + NETWM tray window appears, we can dock */
You shouldn't use a global array here. This is not thread safe, plus you'd need to keep track of window destruction to remove them from the array. The right way IMO would be to walk the window tree checking for WS_EX_TRAYWINDOW at the time a tray window appears. -- Alexandre Julliard julliard(a)winehq.com
8184
Age (days ago)
8184
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard