Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Visual C++ and MFC Fundamentals Chapter 3: Windows Resources


CResApp theApp;


  1. Save All


3.2 Icons...................................................................................................................


3.2.1 Icons Overview.......................................................................................


An icon is a small picture used on a window. It is used in two main scenarios. On a
window's frame, it display on the left side of the window name on the title bar. In
Windows Explorer, on the Desktop, in My Computer, or in the Control Panel windows,
an icon is used to represent an application:

On a window, the icon is a 16x16 pixels size of picture to accommodate the standard
height of the title bar. In window displays such as Windows Explorer or My Computer,
the applications can be represented as tiles or as a list. Each display uses a different size
of icon. Therefore, an icon is created in two sizes that share the same name but the
operating system can manage that concept. This means that you will sometimes create
two designs for one icon, a 16x16 pixel and a 32x32 pixel.

An icon is a graphical object made of two categories of colors. One category represents
the artistic side of the design. The other is the color that would be used as background so
that if the icon is positioned on top of another picture, the background color would be
used as the transparent color to show the sections that are not strictly part of the icon. In
reality, Microsoft Windows imposes the color that is used as background on an icon. You
will find what the icon is.
Free download pdf