CPI_InterfacePart.h
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:3k
源码类别:
VC书籍
开发平台:
Visual C++
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //
- // Player verbs
- //
- // - This will contain all the verbs (commands) for the player - the verb handlers
- // are also capable of returning it's skin def name and it's legacy skin def name
- //
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //
- typedef void (*wp_Part_Destroy_PrivateData)(CP_HINTERFACEPART hPart);
- typedef void (*wp_Part_Draw)(CP_HINTERFACEPART hPart, CPs_DrawContext* pContext);
- typedef void (*wp_Part_onMouseIn)(CP_HINTERFACEPART hPart);
- typedef void (*wp_Part_onMouseOut)(CP_HINTERFACEPART hPart);
- typedef void (*wp_Part_onMouseMove)(CP_HINTERFACEPART hPart, const POINTS ptMouse);
- typedef void (*wp_Part_onMouseButton_LDown)(CP_HINTERFACEPART hPart, const POINTS ptMouse);
- typedef void (*wp_Part_onMouseButton_LUp)(CP_HINTERFACEPART hPart, const POINTS ptMouse);
- typedef void (*wp_Part_onMouseButton_RDown)(CP_HINTERFACEPART hPart, const POINTS ptMouse);
- typedef void (*wp_Part_onMouseButton_RUp)(CP_HINTERFACEPART hPart, const POINTS ptMouse);
- typedef void (*wp_Part_onTimer)(CP_HINTERFACEPART hPart);
- typedef void (*wp_Part_onSongChange)(CP_HINTERFACEPART hPart);
- //
- #define CPC_IP_ALIGN_LEFT 0x1
- #define CPC_IP_ALIGN_RIGHT 0x2
- #define CPC_IP_ALIGN_TOP 0x4
- #define CPC_IP_ALIGN_BOTTOM 0x8
- //
- typedef struct _CPs_InterfacePart
- {
- // Methods
- wp_Part_Destroy_PrivateData Destroy_PrivateData;
- wp_Part_Draw Draw;
- // Notifies
- wp_Part_onMouseIn onMouseIn;
- wp_Part_onMouseOut onMouseOut;
- wp_Part_onMouseMove onMouseMove;
- wp_Part_onMouseButton_LDown onMouseButton_LDown;
- wp_Part_onMouseButton_LUp onMouseButton_LUp;
- wp_Part_onMouseButton_RDown onMouseButton_RDown;
- wp_Part_onMouseButton_RUp onMouseButton_RUp;
- wp_Part_onTimer onTimer;
- wp_Part_onSongChange onSongChange;
- // Data
- RECT m_rLocation;
- DWORD m_dwAlign;
- BOOL m_bRectAlignMode;
- RECT m_rPosition;
- POINT m_ptOffset;
- SIZE m_szSize;
- CP_HINTERFACE m_hOwner;
- void* m_pPrivateData;
- // Link to next part
- CP_HINTERFACEPART m_hNext;
- } CPs_InterfacePart;
- //
- //
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //
- void IP_Invalidate(CP_HINTERFACEPART hPart);
- void IP_Destroy(CP_HINTERFACEPART hPart);
- CP_HINTERFACEPART IP_Create_CommandButton(wp_Verb pfnVerb, CPs_Image_WithState* pImageWS);
- CP_HINTERFACEPART IP_Create_Indicator(const char* pcName);
- //
- ////////////////////////////////////////////////////////////////////////////////