In win32 API programming, there is a concept like “Registering a Window class”.
It is done using the functions RegisterClass() or RegisterClassEx().
What does it actually mean by the term “Register”?
Why is it needed?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When a window is created (throw CreateWindow/Ex), it must be associated with a particular class. That class must first be registered with the system. MSDN simply states:
It is needed because that is how the API defines it. The documentation does not elaborate on what goes on under the covers because that is unnecessary information for a programmer (and the exact implementation can change in updates). You are programming against the interface, not the implementation.