Can I Reuse a Host Window?

It is not recommended that you reuse host windows. To ensure the robustness of your code, you should tie the lifetime of your host window to the lifetime of a single control.

For information on creating controls, see How Do I Create a Control Instance?.

For information on destroying controls, see How Do I Destroy a Control?.

See Also

Concepts

ATL Control Containment FAQ