Hour 9

1: What is the primary class for GDI+?
A1: Graphics.
2: Does GDI+ have a SelectObject() function equivalent? If it does, what is it?
A2: No.
3: What unique feature does GDI+ provide alpha blending that the AlphaBlend() function in GDI doesn't provide?
A3: It provides transparent colors for creating brushes and pens. The AlphaBlend() function only paints a bitmap to where it appears transparent.
4: How do you keep a Windows Form from painting its background?
A4: Override the OnPaintBackground() method and do nothing in the new implementation.

Get Sams Teach Yourself Visual C++® .NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.