Tom Spink wrote: > 2009/9/6 Christian Hoff <christian_h...@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: > > [DllImport("comctl32.dll")] > public static extern bool InitCommonControlsEx(IntPtr lpInitCtrls); > > I've just rattled that off my brain, and the MSDN page: > http://msdn.microsoft.com/en-us/library/bb775697%28VS.85%29.aspx > > 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. Christian _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list