When Do I Need To Call AtlAxWinTerm?

AtlAxWinTerm unregisters the "AtlAxWin" window class. You should call this function (if you no longer need to create host windows) after all existing host windows have been destroyed. If you don't call this function, the window class will be unregistered automatically when the process terminates.

For more information, see When Do I Need To Call AtlAxWinInit?

ATL Control Containment FAQ