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 ...
Get Graphics Programming with GDI+ 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.