CPI_InterfacePart.c
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:1k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. ////////////////////////////////////////////////////////////////////////////////
  2. #include "stdafx.h"
  3. #include "globals.h"
  4. #include "CPI_InterfacePart.h"
  5. ////////////////////////////////////////////////////////////////////////////////
  6. //
  7. //
  8. //
  9. void IP_Invalidate(CP_HINTERFACEPART hPart)
  10. {
  11.     CPs_InterfacePart* pIP = (CPs_InterfacePart*)hPart;
  12.     CP_CHECKOBJECT(pIP);
  13.     InvalidateRect(IF_GetHWnd(pIP->m_hOwner),
  14.                    &pIP->m_rLocation, FALSE);
  15. }
  16. //
  17. //
  18. //
  19. void IP_Destroy(CP_HINTERFACEPART hPart)
  20. {
  21.     CPs_InterfacePart* pIP = (CPs_InterfacePart*)hPart;
  22.     CP_CHECKOBJECT(pIP);
  23.     if(pIP->Destroy_PrivateData)
  24.         pIP->Destroy_PrivateData(pIP);
  25.     free(pIP);
  26. }
  27. //
  28. //
  29. //