armaxctrl.h
上传用户:kairuinn
上传日期:2009-02-07
资源大小:2922k
文件大小:2k
- #pragma once
- // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
- // NOTE: Do not modify the contents of this file. If this class is regenerated by
- // Microsoft Visual C++, your modifications will be overwritten.
- /////////////////////////////////////////////////////////////////////////////
- // CArmaxctrl wrapper class
- class CArmaxctrl : public CWnd
- {
- protected:
- DECLARE_DYNCREATE(CArmaxctrl)
- public:
- CLSID const& GetClsid()
- {
- static CLSID const clsid
- = { 0x4012F180, 0xAEF8, 0x4DFB, { 0xA4, 0x5D, 0x56, 0xBF, 0x5B, 0xA8, 0x64, 0x58 } };
- return clsid;
- }
- virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,
- const RECT& rect, CWnd* pParentWnd, UINT nID,
- CCreateContext* pContext = NULL)
- {
- return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID);
- }
- BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd,
- UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE,
- BSTR bstrLicKey = NULL)
- {
- return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
- pPersist, bStorage, bstrLicKey);
- }
- // Attributes
- public:
- // Operations
- public:
- // _DArMaX
- // Functions
- //
- void SetAmbient(float r, float g, float b)
- {
- static BYTE parms[] = VTS_R4 VTS_R4 VTS_R4 ;
- InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms, r, g, b);
- }
- void SetDiffuse(float r, float g, float b)
- {
- static BYTE parms[] = VTS_R4 VTS_R4 VTS_R4 ;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms, r, g, b);
- }
- void SetEmission(float r, float g, float b)
- {
- static BYTE parms[] = VTS_R4 VTS_R4 VTS_R4 ;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms, r, g, b);
- }
- void SetSpecular(float r, float g, float b)
- {
- static BYTE parms[] = VTS_R4 VTS_R4 VTS_R4 ;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms, r, g, b);
- }
- void SetTransparent(float transparent)
- {
- static BYTE parms[] = VTS_R4 ;
- InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms, transparent);
- }
- void SetShininess(float shininess)
- {
- static BYTE parms[] = VTS_R4 ;
- InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, parms, shininess);
- }
- void CopyToClipboard()
- {
- InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- // Properties
- //
- };