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.

36 lines
1.1 KiB

  1. /*************************************************
  2. * spriteno.h *
  3. * *
  4. * Copyright (C) 1995-1999 Microsoft Inc. *
  5. * *
  6. *************************************************/
  7. // spriteno.h : header file
  8. //
  9. // CSpriteNotifyObj class
  10. //
  11. // This is a class of pure virtual functions with no data. It is used
  12. // by sprite objects to make notification callbacks. A user of the CSprite
  13. // class can derive an object from CSpriteNotifyObj and pass a pointer to this
  14. // derived class object to the sprite object for notification calls.
  15. // Just like OLE's IClientSite interface really.
  16. //
  17. class CSprite;
  18. class CSpriteNotifyObj : public CObject
  19. {
  20. public:
  21. enum CHANGETYPE {
  22. ZORDER = 0x0001,
  23. POSITION = 0x0002,
  24. IMAGE = 0x0004
  25. };
  26. public:
  27. virtual void Change(CSprite *pSprite,
  28. CHANGETYPE change,
  29. CRect* pRect1 = NULL,
  30. CRect* pRect2 = NULL) = 0;
  31. };