Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
766 B

  1. /*
  2. */
  3. #pragma once
  4. #include "iuimgr.h"
  5. #include "iuiview.h"
  6. #include <vector>
  7. class __declspec(uuid(CLSID_CSxApwUiManager_declspec_uuid))
  8. CSxApwUiManager
  9. :
  10. public ATL::CComObjectRootEx<CComSingleThreadModel>,
  11. public ATL::CComCoClass<CSxApwUiManager, &__uuidof(CSxApwUiManager)>,
  12. public ISxApwUiManager
  13. {
  14. typedef std::vector<ATL::CAdapt<ATL::CComPtr<ISxApwUiView> > > Views_t;
  15. Views_t m_views;
  16. public:
  17. CSxApwUiManager() { }
  18. BEGIN_COM_MAP(CSxApwUiManager)
  19. COM_INTERFACE_ENTRY(ISxApwUiManager)
  20. END_COM_MAP()
  21. DECLARE_NO_REGISTRY();
  22. HRESULT STDMETHODCALLTYPE
  23. CreateView(
  24. PCWSTR type,
  25. HWND hWnd
  26. );
  27. HRESULT STDMETHODCALLTYPE
  28. NextRow(
  29. int nColumns,
  30. const LPCWSTR* columns
  31. );
  32. };