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 / font.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-30  |  2.4 KB  |  122 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 "font.h"
  19.  
  20.  
  21. /////////////////////////////////////////////////////////////////////////////
  22. // COleFont properties
  23.  
  24. CString COleFont::GetName()
  25. {
  26.     CString result;
  27.     GetProperty(0x0, VT_BSTR, (void*)&result);
  28.     return result;
  29. }
  30.  
  31. void COleFont::SetName(LPCTSTR propVal)
  32. {
  33.     SetProperty(0x0, VT_BSTR, propVal);
  34. }
  35.  
  36. CY COleFont::GetSize()
  37. {
  38.     CY result;
  39.     GetProperty(0x2, VT_CY, (void*)&result);
  40.     return result;
  41. }
  42.  
  43. void COleFont::SetSize(const CY& propVal)
  44. {
  45.     SetProperty(0x2, VT_CY, &propVal);
  46. }
  47.  
  48. BOOL COleFont::GetBold()
  49. {
  50.     BOOL result;
  51.     GetProperty(0x3, VT_BOOL, (void*)&result);
  52.     return result;
  53. }
  54.  
  55. void COleFont::SetBold(BOOL propVal)
  56. {
  57.     SetProperty(0x3, VT_BOOL, propVal);
  58. }
  59.  
  60. BOOL COleFont::GetItalic()
  61. {
  62.     BOOL result;
  63.     GetProperty(0x4, VT_BOOL, (void*)&result);
  64.     return result;
  65. }
  66.  
  67. void COleFont::SetItalic(BOOL propVal)
  68. {
  69.     SetProperty(0x4, VT_BOOL, propVal);
  70. }
  71.  
  72. BOOL COleFont::GetUnderline()
  73. {
  74.     BOOL result;
  75.     GetProperty(0x5, VT_BOOL, (void*)&result);
  76.     return result;
  77. }
  78.  
  79. void COleFont::SetUnderline(BOOL propVal)
  80. {
  81.     SetProperty(0x5, VT_BOOL, propVal);
  82. }
  83.  
  84. BOOL COleFont::GetStrikethrough()
  85. {
  86.     BOOL result;
  87.     GetProperty(0x6, VT_BOOL, (void*)&result);
  88.     return result;
  89. }
  90.  
  91. void COleFont::SetStrikethrough(BOOL propVal)
  92. {
  93.     SetProperty(0x6, VT_BOOL, propVal);
  94. }
  95.  
  96. short COleFont::GetWeight()
  97. {
  98.     short result;
  99.     GetProperty(0x7, VT_I2, (void*)&result);
  100.     return result;
  101. }
  102.  
  103. void COleFont::SetWeight(short propVal)
  104. {
  105.     SetProperty(0x7, VT_I2, propVal);
  106. }
  107.  
  108. short COleFont::GetCharset()
  109. {
  110.     short result;
  111.     GetProperty(0x8, VT_I2, (void*)&result);
  112.     return result;
  113. }
  114.  
  115. void COleFont::SetCharset(short propVal)
  116. {
  117.     SetProperty(0x8, VT_I2, propVal);
  118. }
  119.  
  120. /////////////////////////////////////////////////////////////////////////////
  121. // COleFont operations
  122.