Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2007

Tip: Looking for answers? Try searching our database.

Being theme-friendly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff Johnson - 20 Feb 2007 15:13 GMT
Does anyone have a link to a good reference on using the Theme API? Here's
what I'm trying to do:

I'm modifying a project I got off of CodeProject. It's a collapsible group
box. This control has a standard plus/minus graphic, but it's always a
simple black-and-white image. That's fine for people like me who run
Classic, but it wouldn't look right for Luna or most anything else. So I
want to be a good citizen and draw the themed expand/collapse images. I have
determined that they are the TVP_GLYPH part with the GLPS_CLOSED and
GLPS_OPENED states, but I don't know how to go about drawing them. Would it
be DrawThemeIcon()? If so, how do I use it? Language isn't important; I can
read both VB.NET and C#.
Jeff Johnson - 20 Feb 2007 16:11 GMT
> Does anyone have a link to a good reference on using the Theme API? Here's
> what I'm trying to do:
[quoted text clipped - 8 lines]
> it be DrawThemeIcon()? If so, how do I use it? Language isn't important; I
> can read both VB.NET and C#.

Hmmm, it looks like DrawThemeBackground() is what I really want. And
apparently that doesn't work at all in Classic, so I have to draw the glyphs
myself. Not that they're complicated or anything....

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.