www.pudn.com > VCBOOKSOURCES.zip > AXCTRL.CPP, change:1998-06-14,size:1181b


///////////////////////////////////////////////////////////////////////////// 
// AXCtrl.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 "axctrl.h" 
 
IMPLEMENT_DYNCREATE(CAXCtrl, CWnd) 
 
///////////////////////////////////////////////////////////////////////////// 
// CAXCtrl properties 
 
OLE_COLOR CAXCtrl::GetBackColor() 
{ 
   OLE_COLOR result; 
   GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result); 
   return result; 
} 
 
void CAXCtrl::SetBackColor(OLE_COLOR propVal) 
{ 
   SetProperty(DISPID_BACKCOLOR, VT_I4, propVal); 
} 
 
BOOL CAXCtrl::GetShowFrame() 
{ 
   BOOL result; 
   GetProperty(0x1, VT_BOOL, (void*)&result); 
   return result; 
} 
 
void CAXCtrl::SetShowFrame(BOOL propVal) 
{ 
   SetProperty(0x1, VT_BOOL, propVal); 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CAXCtrl operations 
 
void CAXCtrl::AboutBox() 
{ 
   InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
}