Leaked source code of windows server 2003
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.

47 lines
1.6 KiB

  1. //==============================================================;
  2. //
  3. // This source code is only intended as a supplement to
  4. // existing Microsoft documentation.
  5. //
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  7. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  8. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  9. // PURPOSE.
  10. //
  11. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  12. //==============================================================;
  13. #include "stdafx.h"
  14. #include "DeleBase.h"
  15. const GUID CDelegationBase::thisGuid = { 0x2974380b, 0x4c4b, 0x11d2, { 0x89, 0xd8, 0x0, 0x0, 0x21, 0x47, 0x31, 0x28 } };
  16. HBITMAP CDelegationBase::m_pBMapSm = NULL;
  17. HBITMAP CDelegationBase::m_pBMapLg = NULL;
  18. //==============================================================
  19. //
  20. // CDelegationBase implementation
  21. //
  22. //
  23. CDelegationBase::CDelegationBase()
  24. : bExpanded(FALSE), m_handle(NULL)
  25. {
  26. if (NULL == m_pBMapSm || NULL == m_pBMapLg)
  27. LoadBitmaps();
  28. }
  29. CDelegationBase::~CDelegationBase()
  30. {
  31. }
  32. // CDelegationBase::AddImages sets up the collection of images to be displayed
  33. // by the IComponent in the result pane as a result of its MMCN_SHOW handler
  34. HRESULT CDelegationBase::OnAddImages(IImageList *pImageList, HSCOPEITEM hsi)
  35. {
  36. return pImageList->ImageListSetStrip((long *)m_pBMapSm, // pointer to a handle
  37. (long *)m_pBMapLg, // pointer to a handle
  38. 0, // index of the first image in the strip
  39. RGB(0, 128, 128) // color of the icon mask
  40. );
  41. }