armaxctrl.h
Upload User: kairuinn
Upload Date: 2009-02-07
Package Size: 2922k
Code Size: 2k
Category:

Graph program

Development Platform:

Visual C++

  1. #pragma once
  2. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  3. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  4. //  Microsoft Visual C++, your modifications will be overwritten.
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CArmaxctrl wrapper class
  7. class CArmaxctrl : public CWnd
  8. {
  9. protected:
  10. DECLARE_DYNCREATE(CArmaxctrl)
  11. public:
  12. CLSID const& GetClsid()
  13. {
  14. static CLSID const clsid
  15. = { 0x4012F180, 0xAEF8, 0x4DFB, { 0xA4, 0x5D, 0x56, 0xBF, 0x5B, 0xA8, 0x64, 0x58 } };
  16. return clsid;
  17. }
  18. virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,
  19. const RECT& rect, CWnd* pParentWnd, UINT nID, 
  20. CCreateContext* pContext = NULL)
  21. return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); 
  22. }
  23.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, 
  24. UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE,
  25. BSTR bstrLicKey = NULL)
  26. return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  27. pPersist, bStorage, bstrLicKey); 
  28. }
  29. // Attributes
  30. public:
  31. // Operations
  32. public:
  33. // _DArMaX
  34. // Functions
  35. //
  36. void SetAmbient(float r, float g, float b)
  37. {
  38. static BYTE parms[] = VTS_R4 VTS_R4 VTS_R4 ;
  39. InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms, r, g, b);
  40. }
  41. void SetDiffuse(float r, float g, float b)
  42. {
  43. static BYTE parms[] = VTS_R4 VTS_R4 VTS_R4 ;
  44. InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms, r, g, b);
  45. }
  46. void SetEmission(float r, float g, float b)
  47. {
  48. static BYTE parms[] = VTS_R4 VTS_R4 VTS_R4 ;
  49. InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms, r, g, b);
  50. }
  51. void SetSpecular(float r, float g, float b)
  52. {
  53. static BYTE parms[] = VTS_R4 VTS_R4 VTS_R4 ;
  54. InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms, r, g, b);
  55. }
  56. void SetTransparent(float transparent)
  57. {
  58. static BYTE parms[] = VTS_R4 ;
  59. InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms, transparent);
  60. }
  61. void SetShininess(float shininess)
  62. {
  63. static BYTE parms[] = VTS_R4 ;
  64. InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, parms, shininess);
  65. }
  66. void CopyToClipboard()
  67. {
  68. InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  69. }
  70. // Properties
  71. //
  72. };