What does “window class registration” mean? Why is this needed?

There is a concept in Win32 API programming such as "Registering the Window Class".

It is performed using the RegisterClass()or functions RegisterClassEx().

What does the term “registration” really mean?

Why is this needed?

+3
source share
1 answer

When a window is created (throw CreateWindow / Ex), it must be associated with a specific class. This class must first be registered with the system. MSDN simply states:

A process must register a window class before it can create a window for this class.

, API. , , ( ). , .

+3

All Articles