[Mono-dev] Gtk depends on Winforms ¿?
christian_hoff at gmx.net
Sun Sep 6 15:18:50 EDT 2009
Tom Spink wrote:
> 2009/9/6 Christian Hoff <christian_hoff at gmx.net>:
>> As I said, nobody has ever found out what DoEvents does and why
>> produces the desired results. We'd really like to avoid loading SWF at
>> runtime, but so far nobody has come up with a better solution :-) .
> Just to pitch in, I remember *ages* ago when XP first introduced
> visual styles, a manifest was required to specify using the common
> controls library version 6, but also a call to InitCommonControlsEx
> was required:
> public static extern bool InitCommonControlsEx(IntPtr lpInitCtrls);
> I've just rattled that off my brain, and the MSDN page:
> I can't test this, since I don't have a suitable test environment.
> But, it may point someone in the right direction.
I don't think that we'd need to call InitCommonControlsEx as the whole
thing works with native Gtk+ applications. We don't need to call
EnableVisualStyles either, just the DoEvents call is necessary. That
indicates that the common controls v6 are loaded.
Unfortunately, I do not have an XP machine, either. In a few years when
nobody is using this OS any more, we can drop this hackish workaround
anyway. Until then, we will probably have to treat the whole thing as a
blackbox ;-) . Nevertheless, if someone comes up with a better solution,
we'd be happy to commit it.
More information about the Mono-devel-list