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.

58 lines
1.7 KiB

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