Window Class Data

Window classes are general window types that form the basis of windows. They resemble C++ classes in that all windows created with a particular window class have the same base properties. Each window class stores the base information that applies to all windows created using that class. Any window created within a class automatically takes on the properties of the class, such as the background color or icon. A window class can also store extra data that an application can access and use during operation.

The WNDCLASSEX structure is the storage place for class data. The application uses the WNDCLASSEX structure when it registers a new window class and when it retrieves class information. Listing 4.1 shows how the WNDCLASSEX

Get Microsoft Windows 2000 API SuperBible 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.