Valhalla Legends Archive

Programming => General Programming => .NET Platform => Topic started by: Warrior on October 08, 2006, 08:21 PM

Title: Managed Theme API?
Post by: Warrior on October 08, 2006, 08:21 PM
I need to owner draw an RTB to give it a standard style for an App I'm writing.

Is there a managed solution to invoke the Theme APIs in UxTheme.dll?
Right now I'm just doing a bunch of [DllImports] using the InteropServices but it's not as elegant as I'd like.

Does anyone have a managed wrapper either written or is there one that comes by default with .NET 2.0? This is really a shame that this isn't included.
Title: Re: Managed Theme API?
Post by: MyndFyre on October 08, 2006, 11:47 PM
It's the System.Windows.Forms.VisualStyles namespace in .NET 2.0.

MSDN: ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/CPref18/html/N_System_Windows_Forms_VisualStyles.htm (http://ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/CPref18/html/N_System_Windows_Forms_VisualStyles.htm)
Title: Re: Managed Theme API?
Post by: Zer0 on October 09, 2006, 12:18 AM
[link]http://www.jinxbot.net/netskinex/[/link]
Title: Re: Managed Theme API?
Post by: MyndFyre on October 09, 2006, 02:20 AM
Quote from: Zer0 on October 09, 2006, 12:18 AM
[link]http://www.jinxbot.net/netskinex/[/link]
That's not how the theming API works.  The theming API assists custom control developers by drawing components on-demand.  .NETskinEx overrides the default implementation of non-client area drawing.
Title: Re: Managed Theme API?
Post by: Warrior on October 09, 2006, 06:41 AM
Thanks.