Test bar disabled. Header div remains.

The Blog

C# DWM Glass

Okay, I’m about to go in to demo ‘Giggle’, but I just found a way of rendering readable text on glass in C#’ without adding to the onPaint() functions etc… and it’s really easy!

C# Code 

As you can see, it’s easily adaptable in to a function for ‘universal painting of text on to Glass, although notable is the fact that if the pane is taken ‘off screen’ then the text will need to be redrawn, and a glass area can only be drawn to if it is currently visible.

Enjoy,

Chris
note: Cheers to a couple of guys who blog on MSDN for some of the code

Discussion

Tags: , , ,

2 Twitter Comments So Far

  1. Alessandro
    September 9, 2009 at 8:39 am #

    Where is the code? No code?

  2. Chris Maddern
    October 19, 2009 at 1:54 pm #

    Update: Check back tomorrow I’m going to post a more full code sample for this tonight!

Leave a Comment

Remember to play nicely folks, nobody likes a troll.

Caution: divs may fall without warning! (Currently in development)

Follow

Get every new post delivered to your Inbox

Join other followers: