mirror of https://github.com/tongzx/nt5src
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
36 lines
1.1 KiB
|
|
/*************************************************
|
|
* spriteno.h *
|
|
* *
|
|
* Copyright (C) 1995-1999 Microsoft Inc. *
|
|
* *
|
|
*************************************************/
|
|
|
|
// spriteno.h : header file
|
|
//
|
|
// CSpriteNotifyObj class
|
|
//
|
|
// This is a class of pure virtual functions with no data. It is used
|
|
// by sprite objects to make notification callbacks. A user of the CSprite
|
|
// class can derive an object from CSpriteNotifyObj and pass a pointer to this
|
|
// derived class object to the sprite object for notification calls.
|
|
// Just like OLE's IClientSite interface really.
|
|
//
|
|
|
|
class CSprite;
|
|
|
|
class CSpriteNotifyObj : public CObject
|
|
{
|
|
public:
|
|
enum CHANGETYPE {
|
|
ZORDER = 0x0001,
|
|
POSITION = 0x0002,
|
|
IMAGE = 0x0004
|
|
};
|
|
|
|
public:
|
|
virtual void Change(CSprite *pSprite,
|
|
CHANGETYPE change,
|
|
CRect* pRect1 = NULL,
|
|
CRect* pRect2 = NULL) = 0;
|
|
};
|