![]() |
|
This is an example of how to use the ISkpApplication and ISkpViewProvider classes to obtain the current ISkpView.
HRESULT GetCurrentView(ISkpApplication* pApplication, ISkpView** pView) { HRESULT hr; // Get the ISkpViewProvider from the ISkpApplication ISkpViewProvider* pViewProvider = NULL; hr = pApplication->QueryInterface(IID_ISkpViewProvider, (void**)&pViewProvider); if(FAILED(hr)) { return hr; } // Now get the current view from the ISkpViewProvider interface hr = pViewProvider->get_CurrentView(pView); pViewProvider->Release(); return hr; }
©2010 Google - Google Home - About Google |