INF: Using UnregisterClass When Removing Custom Control Class

ID Number: Q67248

3.00 3.10

WINDOWS

In the Microsoft Windows environment, when no running application

requires a custom control class, the class should be removed from

memory to free the system resources it uses.

If an application registers a control class for temporary use, the

application should use the UnregisterClass function when the control

is no longer needed. If the application is terminated, Windows

automatically removes any classes that the application registered;

therefore, explicit use of UnregisterClass is not required. However,

pairing calls to the RegisterClass and UnregisterClass functions is a

good programming practice.

Additional reference words: 3.00 3.10