{
{ NG_TRACE_METHOD(NPP_SetWindow);
NPP_SetWindow(NPP instance, NPWindow* window){    	// Reject silly parameters	if (!window)	{		return NPERR_GENERIC_ERROR;	}	if (!instance)	{		return  NPERR_INVALID_INSTANCE_ERROR;	}	CControlSiteInstance *pSite = (CControlSiteInstance *) instance->pdata;	if (pSite == NULL)	{		return NPERR_GENERIC_ERROR;	}	HWND hwndParent = (HWND) window->window;	if (hwndParent)	{		RECT rcPos;		GetClientRect(hwndParent, &rcPos);		if (pSite->GetParentWindow() == NULL)		{			pSite->Attach(hwndParent, rcPos, NULL);		}		else		{			pSite->SetPosition(rcPos);		}	}	return NPERR_NO_ERROR;}