AtlAxWinInit registers the "AtlAxWin" window class (plus a couple of custom window messages) so this function must be called before you try to create a host window. However, you don't always need to call this function explicitly, since the hosting APIs (and the classes that use them) often call this function for you. There is no harm in calling this function more than once. For more information, see What Is the ATL Control Hosting API?
See Also