ActiveX ñ íóëÿ

         

Ôàéë MyCtrl.h


#if !defined(AFX_MYCTRL_H__49E2F385_B48D_11D3_A2B0_00A0C955FA9E__INCLUDED_)

#define AFX_MYCTRL_H__49E2F385_B48D_11D3_A2B0_00A0C955FA9E__INCLUDED_

#if _MSC_VER > 1000

#pragma once

#endif // _MSC_VER > 1000

// MyCtrl.h : main header file for MYCTRL.DLL

#if !defined( __AFXCTL_H__ )

            #error include 'afxctl.h' before including this file

#endif

#include "resource.h"       // main symbols

/////////////////////////////////////////////////////////////////////////////

// CMyCtrlApp : See MyCtrl.cpp for implementation.

class CMyCtrlApp : public COleControlModule

{

public:

            BOOL InitInstance();



            int ExitInstance();

};

extern const GUID CDECL _tlid;

extern const WORD _wVerMajor;

extern const WORD _wVerMinor;

//{{AFX_INSERT_LOCATION}}

// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYCTRL_H__49E2F385_B48D_11D3_A2B0_00A0C955FA9E__INCLUDED)


#if !defined(AFX_MYCTRL_H__80E61EB0_5D6E_11D4_BCC0_00A0C955FA9E__INCLUDED_)

#define AFX_MYCTRL_H__80E61EB0_5D6E_11D4_BCC0_00A0C955FA9E__INCLUDED_

#if _MSC_VER > 1000

#pragma once

#endif // _MSC_VER > 1000

// 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.

// Dispatch interfaces referenced by this interface

class COleFont;

/////////////////////////////////////////////////////////////////////////////

// CMyCtrl wrapper class

class CMyCtrl : public CWnd

{

protected:

            DECLARE_DYNCREATE(CMyCtrl)

public:

            CLSID const& GetClsid()

            {

                        static CLSID const clsid

                                    = { 0x49e2f37f, 0xb48d, 0x11d3, { 0xa2, 0xb0, 0x0, 0xa0, 0xc9, 0x55, 0xfa, 0x9e } };

                        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:

            short GetShape();

            void SetShape(short);

            short Get_Shape();

            void Set_Shape(short);

            BOOL GetSelected();

            void SetSelected(BOOL);

            OLE_COLOR GetForeColor();

            void SetForeColor(OLE_COLOR);

            unsigned long GetSelectColor();

            void SetSelectColor(unsigned long);

            CString GetCaption();

            void SetCaption(LPCTSTR);

            COleFont GetFont();

            void SetFont(LPDISPATCH);

            unsigned long GetTextColor();

            void SetTextColor(unsigned long);

            long GetSleep();

            void SetSleep(long);

// Operations

public:

            void DoClick();

            BOOL DoChangeTimer();

            void AboutBox();

};

//{{AFX_INSERT_LOCATION}}

// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYCTRL_H__80E61EB0_5D6E_11D4_BCC0_00A0C955FA9E__INCLUDED_)



Ñîäåðæàíèå ðàçäåëà