O'Reilly logo

Graphics Programming with GDI+ by Mahesh Chand

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6.5. Regions, Nonrectangular Forms, and Controls

When we’re writing Windows applications with drawing functionality, it becomes important to understand the roles of regions, client areas, and nonclient areas. This section will describe an exciting and wonderful use of regions.

Figure 6.18 shows a typical rectangular form. As you can see, the title bar area usually contains the title of the form, as well as minimize, maximize, and close buttons. This is the nonclient area; the rest of the form is the client area. Graphics objects can be drawn only in the client area. The combination of both client and nonclient areas is the default region of a form.

Figure 6.18. Client and nonclient areas of a form

What exactly is a region? A region is a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required