Our posts crossed...sorry I hadn't gotten the email notification of your post.
As far as differences, it could be lots of stuff. I do a lot of tricks to get transparency to with my Transparent Windows Forms and Controls library. And also some double-buffer stuff with compositing for performance and accuracy with the pseudo-transparency. In fact, now that I think about it, that might be it. This is in my main window form:
That would certainly explain it...
Ryan
As far as differences, it could be lots of stuff. I do a lot of tricks to get transparency to with my Transparent Windows Forms and Controls library. And also some double-buffer stuff with compositing for performance and accuracy with the pseudo-transparency. In fact, now that I think about it, that might be it. This is in my main window form:
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
// turn on form compositing (double buffering) if Vista or higher
// we can't do this on XP due to GDI+ issue in that case
OperatingSystem OS = Environment.OSVersion;
if ((OS.Platform == PlatformID.Win32NT) && (OS.Version.Major >= 6))
{
cp.ExStyle |= Native.WS_EX_COMPOSITED;
}
return cp;
}
}
I'm guessing that when the window style is WS_EX_COMPOSITED, that GDI+ requires the hint in order to use ClearType!!!That would certainly explain it...
Ryan