[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: [TRY 3] Add support for tooltips for system tray icons
From: James Liggett <jrliggett () cox ! net>
Date: 2006-08-31 19:22:18
Message-ID: 1157052138.12276.1.camel () james
[Download RAW message or body]
Hi Kuba,
>
> What about a static variable right in the function where you call the
> initialization function? That'd work fine if you don't call
> InitCommonControlsEx from anywhere else:
>
> if (!list_head(&tray.icons))
> {
> static BOOL controls_initialized = FALSE;
> INITCOMMONCONTROLSEX init_tooltip;
>
> init_tooltip.dwSize = sizeof(INITCOMMONCONTROLSEX);
> init_tooltip.dwICC = ICC_TAB_CLASSES;
>
> if (! controls_initialized) {
> InitCommonControlsEx(&init_tooltip);
> controls_initialized = TRUE;
> }
> . . .
> }
Indeed, that's what I ended up doing. Mike committed it to his temporary
git tree.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic