Windows2003-3790/multimedia/published/dxmdev/idl/danimid.h
2020-09-30 16:53:55 +02:00

53 lines
2.7 KiB
C

// Copyright (C) Microsoft Corporation, 1998
//
// IDs for DANIM Events
//
// Just follow the template when adding either DISPIDs or new interfaces.
//
#ifndef __DANIMDISPID_H__
#define __DANIMDISPID_H__
// Base offset:
#define DISPID_BASE 0x00000000
// Interface offsets:
#define DAVIEWERCONTROL_OFFSET 0x1000
#define DAVIEW_OFFSET 0x2000
// Interface bases:
#define DISPID_DANIMEVENT_BASE (DISPID_BASE + DAVIEWERCONTROL_OFFSET)
#define DISPID_VIEWEVENT_BASE (DISPID_BASE + DAVIEW_OFFSET)
// DAVIEWERCONTROL DISPIDs:
#define DISPID_DANIMEVENT_START (DISPID_DANIMEVENT_BASE + 0x01)
#define DISPID_DANIMEVENT_MOUSEUP (DISPID_DANIMEVENT_BASE + 0x02)
#define DISPID_DANIMEVENT_MOUSEDOWN (DISPID_DANIMEVENT_BASE + 0x03)
#define DISPID_DANIMEVENT_MOUSEMOVE (DISPID_DANIMEVENT_BASE + 0x04)
#define DISPID_DANIMEVENT_CLICK (DISPID_DANIMEVENT_BASE + 0x05)
#define DISPID_DANIMEVENT_KEYPRESS (DISPID_DANIMEVENT_BASE + 0x06)
#define DISPID_DANIMEVENT_KEYUP (DISPID_DANIMEVENT_BASE + 0x07)
#define DISPID_DANIMEVENT_KEYDOWN (DISPID_DANIMEVENT_BASE + 0x08)
#define DISPID_DANIMEVENT_ERROR (DISPID_DANIMEVENT_BASE + 0x09)
#define DISPID_DANIMEVENT_STOP (DISPID_DANIMEVENT_BASE + 0x0A)
#define DISPID_DANIMEVENT_PAUSE (DISPID_DANIMEVENT_BASE + 0x0B)
#define DISPID_DANIMEVENT_RESUME (DISPID_DANIMEVENT_BASE + 0x0C)
//VIEW DISPIDS
#define DISPID_VIEWEVENT_START (DISPID_VIEWEVENT_BASE + 0x01)
#define DISPID_VIEWEVENT_STOP (DISPID_VIEWEVENT_BASE + 0x02)
#define DISPID_VIEWEVENT_ONMOUSEMOVE (DISPID_VIEWEVENT_BASE + 0x03)
#define DISPID_VIEWEVENT_ONMOUSEBUTTON (DISPID_VIEWEVENT_BASE + 0x04)
#define DISPID_VIEWEVENT_ONKEY (DISPID_VIEWEVENT_BASE + 0x05)
#define DISPID_VIEWEVENT_ONFOCUS (DISPID_VIEWEVENT_BASE + 0x06)
#define DISPID_VIEWEVENT_PAUSE (DISPID_VIEWEVENT_BASE + 0x07)
#define DISPID_VIEWEVENT_RESUME (DISPID_VIEWEVENT_BASE + 0x08)
#define DISPID_VIEWEVENT_ERROR (DISPID_VIEWEVENT_BASE + 0x09)
#endif //__DANIMDISPID_H__