Exemplo n.º 1
0
// Get a dispinterface for the IAccessibility object for the specified box.
void VwAccessRoot::GetAccessFor(VwBox * pbox, IDispatch ** ppdisp)
{
	*ppdisp = NULL;
	if (!pbox)
		return;
	IAccessiblePtr qacc;
	// If we already made one for that box, answer it. Otherwise make one.
	if (!ViewsGlobals::m_hmboxacc->Retrieve(pbox, qacc))
		qacc.Attach(NewObj VwAccessRoot(pbox));

	qacc->QueryInterface(IID_IDispatch, (void **)ppdisp);
}