ActiveX с нуля

         

Файл MyCtrl.cpp


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

#include "stdafx.h"

#include "myctrl.h"

// Dispatch interfaces referenced by this interface

#include "font.h"

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

// CMyCtrl

IMPLEMENT_DYNCREATE(CMyCtrl, CWnd)

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

// CMyCtrl properties

short CMyCtrl::GetShape()

{

            short result;

            GetProperty(0x1, VT_I2, (void*)&result);

            return result;

}

void CMyCtrl::SetShape(short propVal)

{

            SetProperty(0x1, VT_I2, propVal);

}

short CMyCtrl::Get_Shape()

{

            short result;

            GetProperty(0x0, VT_I2, (void*)&result);

            return result;

}

void CMyCtrl::Set_Shape(short propVal)

{

            SetProperty(0x0, VT_I2, propVal);

}

BOOL CMyCtrl::GetSelected()

{

            BOOL result;

            GetProperty(0x2, VT_BOOL, (void*)&result);

            return result;

}

void CMyCtrl::SetSelected(BOOL propVal)

{

            SetProperty(0x2, VT_BOOL, propVal);

}

OLE_COLOR CMyCtrl::GetForeColor()

{

            OLE_COLOR result;

            GetProperty(DISPID_FORECOLOR, VT_I4, (void*)&result);

            return result;

}

void CMyCtrl::SetForeColor(OLE_COLOR propVal)

{

            SetProperty(DISPID_FORECOLOR, VT_I4, propVal);

}

unsigned long CMyCtrl::GetSelectColor()

{

            unsigned long result;

            GetProperty(0x3, VT_I4, (void*)&result);

            return result;

}

void CMyCtrl::SetSelectColor(unsigned long propVal)

{

            SetProperty(0x3, VT_I4, propVal);



Содержание  Назад  Вперед







Forekc.ru
Рефераты, дипломы, курсовые, выпускные и квалификационные работы, диссертации, учебники, учебные пособия, лекции, методические пособия и рекомендации, программы и курсы обучения, публикации из профильных изданий