Valhalla Legends Forums Archive | .NET Platform | Managed Theme API?

AuthorMessageTime
Quarantine
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.
October 9, 2006, 1:21 AM
Myndfyr
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
October 9, 2006, 4:47 AM
Zer0
[link]http://www.jinxbot.net/netskinex/[/link]
October 9, 2006, 5:18 AM
Myndfyr
[quote author=Zer0 link=topic=15843.msg159586#msg159586 date=1160371112]
[link]http://www.jinxbot.net/netskinex/[/link]
[/quote]
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.
October 9, 2006, 7:20 AM
Quarantine
Thanks.
October 9, 2006, 11:41 AM

Search