It passes a pointer to the plug-in's instance, NPP pInstance . After that, it saves a pointer to CPluginWindow in the Navigator-provided instance structure and saves the mode. Remember that this call to UnsubclassWindow is a CPluginWindow method, not an MFC method as in previous examples. Finally, the object is deleted and its instance data pointer is set to NULL . Unsubclass the window, clean it up and delete it.
Instance data is retrieved and spurious entries are checked for.
The difference is that no object is created. Instead of new object creation, the plug-in window handle is saved, and the window is subclassed and initialized. Redraw the window. This file can be in either Navigator cache or another directory, depending on its origination. The CPluginWindow class contains the instance data for the plug-in.