home *** CD-ROM | disk | FTP | other *** search
/ Game Programming in C++ - Start to Finish / GameProgrammingS.iso / developer_install / ReplicaNetFreewareV5_4.exe / data1.cab / Program_Executable_Files / Example5 / picture.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-30  |  1.4 KB  |  66 lines

  1. /* START_LICENSE_HEADER
  2.  
  3. Copyright (C) 2000 Martin Piper, original design and program code
  4. Copyright (C) 2001-2005 Replica Software
  5.  
  6. This program file is copyright (C) Replica Software and can only be used under license.
  7. For more information visit: http://www.replicanet.com/
  8. Or email: info@replicanet.com
  9.  
  10. END_LICENSE_HEADER */
  11. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  12.  
  13. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  14. //  Microsoft Visual C++, your modifications will be overwritten.
  15.  
  16.  
  17. #include "stdafx.h"
  18. #include "picture.h"
  19.  
  20.  
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CPicture properties
  23.  
  24. long CPicture::GetHandle()
  25. {
  26.     long result;
  27.     GetProperty(0x0, VT_I4, (void*)&result);
  28.     return result;
  29. }
  30.  
  31. long CPicture::GetHPal()
  32. {
  33.     long result;
  34.     GetProperty(0x2, VT_I4, (void*)&result);
  35.     return result;
  36. }
  37.  
  38. void CPicture::SetHPal(long propVal)
  39. {
  40.     SetProperty(0x2, VT_I4, propVal);
  41. }
  42.  
  43. short CPicture::GetType()
  44. {
  45.     short result;
  46.     GetProperty(0x3, VT_I2, (void*)&result);
  47.     return result;
  48. }
  49.  
  50. long CPicture::GetWidth()
  51. {
  52.     long result;
  53.     GetProperty(0x4, VT_I4, (void*)&result);
  54.     return result;
  55. }
  56.  
  57. long CPicture::GetHeight()
  58. {
  59.     long result;
  60.     GetProperty(0x5, VT_I4, (void*)&result);
  61.     return result;
  62. }
  63.  
  64. /////////////////////////////////////////////////////////////////////////////
  65. // CPicture operations
  66.