copied Revit 2024 SDK

This commit is contained in:
Jeremy Tammik
2023-04-26 14:47:47 +02:00
parent 2ca39e38fd
commit 4d69f3eea5
425 changed files with 344414 additions and 2296 deletions
@@ -0,0 +1,626 @@
#include "pch.h"
#include "ClipAngle.h"
#include <corecrt_math_defines.h>
#include "NativeClipAnglePage.h"
STDMETHODIMP SampleClipAngle::InterfaceSupportsErrorInfo(REFIID riid)
{
static const IID* arr[] =
{
&IID_ISampleClipAngle,
};
for (int i = 0; i < sizeof(arr) / sizeof(arr[0]); i++)
{
if (IsEqualGUID(*arr[i], riid))
return S_OK;
}
return S_FALSE;
}
STDMETHODIMP SampleClipAngle::get_Joint(IJoint** pVal)
{
if (m_pJoint == NULL)
return E_POINTER;
IJoint* pNewJoint;
HRESULT hr = m_pJoint->QueryInterface(IID_IJoint, (void**)&pNewJoint);
if (SUCCEEDED(hr))
*pVal = pNewJoint;
return hr;
}
STDMETHODIMP SampleClipAngle::put_Joint(IJoint* pVal)
{
HRESULT hr = S_OK;
if (m_pJoint)
{
m_pJoint->Release();
m_pJoint = NULL;
}
if (NULL != pVal)
hr |= pVal->QueryInterface(IID_IJoint, (void**)&m_pJoint);
return hr;
}
void
SampleClipAngle::SplitBeamsInternalName(BSTR fullInternal, BSTR& classInternal, BSTR& sectionInternal)
{
CString intName(fullInternal);
CString intClass = L"";
CString intSection = L"";
int position = -1;
position = intName.Find(CString(L"#@§@#"));
if (position > 0)
{
intClass = intName.Left(position);
intSection = intName.Right(intName.GetLength() - (position + 5));
//set the values in the output parameters
classInternal = intClass.AllocSysString();
sectionInternal = intSection.AllocSysString();
}
else
{
//set default values in the output parameters (empty strings)
classInternal = intClass.AllocSysString();
sectionInternal = intSection.AllocSysString();
}
}
STDMETHODIMP SampleClipAngle::Query(IAstUI* pAstUI)
{
if (!m_pJoint)
return E_FAIL;
HRESULT hr = S_OK;
//create an array to store the input objects
IAstObjectsArrPtr inputObjectsArr;
hr |= m_pJoint->CreateObjectsArray(&inputObjectsArr);
IClassFilterPtr classFilter;
hr |= pAstUI->GetClassFilter(&classFilter);
hr |= classFilter->AppendAcceptedClass(kBeamClass);
eUIErrorCodes errCode;
IAstObjectPtr column, beam;
//Get the column
hr |= pAstUI->AcquireSingleObject(88270, &errCode, &column);
if ((kUICancel == errCode) || (kUINoResult == errCode)) //user abort
{
return E_ABORT;
}
if (SUCCEEDED(hr))
hr |= inputObjectsArr->Add(column);
//select beam to connect
hr |= pAstUI->AcquireSingleObject(88271, &errCode, &beam);
if ((kUICancel == errCode) || (kUINoResult == errCode)) //user abort
{
return E_ABORT;
}
//add the beam in the input objects array
if (SUCCEEDED(hr))
hr |= inputObjectsArr->Add(beam);
//add all the objects selected by the user(input objects)
m_pJoint->put_InputObjects(inputObjectsArr);
IOdbcUtilsPtr tableUtils;
hr |= tableUtils.CreateInstance("DSCOdbcCom.OdbcUtils");
CString angleDefault("HyperSectionW");
BSTR defAngle;
hr |= tableUtils->GetDefaultString(0, angleDefault.AllocSysString(), &defAngle);
SplitBeamsInternalName(defAngle, m_sProfType, m_sProfSize);
CString boltsDiameter("Diameter");
CString boltsStandard("Norm");
CString boltsSet("Garnitur");
CString boltsMaterial("Material");
hr |= tableUtils->GetDefaultDouble(401, boltsDiameter.AllocSysString(), &m_dBoltsDiameter);
hr |= tableUtils->GetDefaultString(401, boltsStandard.AllocSysString(), &m_sBoltsStandard);
hr |= tableUtils->GetDefaultString(401, boltsSet.AllocSysString(), &m_sBoltsSet);
hr |= tableUtils->GetDefaultString(401, boltsMaterial.AllocSysString(), &m_sBoltsMaterial);
return hr;
}
STDMETHODIMP SampleClipAngle::InField(IFiler* pFiler)
{
HRESULT hr = S_OK;
//must be used in order to be able to check rule version
//if changes are required in future releases
long nVer;
hr |= pFiler->readVersion(&nVer);
VARIANT var;
//2.2.1 Sheet 1 "Angle cleat"
hr |= pFiler->readItem(CString("ProfType").AllocSysString(), &var);
m_sProfType = var.bstrVal;
hr |= pFiler->readItem(CString("ProfSize").AllocSysString(), &var);
m_sProfSize = var.bstrVal;
hr |= pFiler->readItem(CString("BoltsDiameter").AllocSysString(), &var);
m_dBoltsDiameter = var.dblVal;
hr |= pFiler->readItem(CString("BoltsStandard").AllocSysString(), &var);
m_sBoltsStandard = var.bstrVal;
hr |= pFiler->readItem(CString("BoltsMaterial").AllocSysString(), &var);
m_sBoltsMaterial = var.bstrVal;
hr |= pFiler->readItem(CString("BoltsSet").AllocSysString(), &var);
m_sBoltsSet = var.bstrVal;
return hr;
}
STDMETHODIMP SampleClipAngle::OutField(IFiler* pFiler)
{
HRESULT hr = S_OK;
hr |= pFiler->writeVersion(1);
//2.2.1 Sheet 1 "Angle cleat"
hr |= pFiler->writeItem(CComVariant(m_sProfType), CString("ProfType").AllocSysString());
hr |= pFiler->writeItem(CComVariant(m_sProfSize), CString("ProfSize").AllocSysString());
hr |= pFiler->writeItem(CComVariant(m_dBoltsDiameter), CString("BoltsDiameter").AllocSysString());
hr |= pFiler->writeItem(CComVariant(m_sBoltsStandard), CString("BoltsStandard").AllocSysString());
hr |= pFiler->writeItem(CComVariant(m_sBoltsMaterial), CString("BoltsMaterial").AllocSysString());
hr |= pFiler->writeItem(CComVariant(m_sBoltsSet), CString("BoltsSet").AllocSysString());
return hr;
}
STDMETHODIMP SampleClipAngle::GetTableName(BSTR* pStrTableName)
{
if (pStrTableName == NULL)
return E_POINTER;
// table name
CString tableName("");
*pStrTableName = tableName.AllocSysString();
return S_OK;
}
STDMETHODIMP SampleClipAngle::CreateObjects()
{
if (!m_pJoint)
return E_FAIL;
HRESULT ruleCreateObjectsMethodStatus = S_OK;
HRESULT hr = S_OK;
//get the joint input objects array - previously saved in Query part
IAstObjectsArrPtr spInObj;
hr |= m_pJoint->get_InputObjects(&spInObj);
//create an array that will contain all the AS objects created by the joint
IAstObjectsArrPtr createdObjects;
hr |= m_pJoint->CreateObjectsArray(&createdObjects);
if (SUCCEEDED(hr))
{
try
{
bool bCreationStatus = true;
//declare the created objects
//retrieve the beam & the column from the input objects array
IBeamPtr inputColumn, inputBeam;
hr |= spInObj->get_Item(CComVariant(0), (IAstObject**)&inputColumn);
hr |= spInObj->get_Item(CComVariant(1), (IAstObject**)&inputBeam);
ICS3dPtr csColumn, csBeam;
hr |= inputColumn->get_cs(&csColumn);
hr |= inputBeam->get_cs(&csBeam);
IVector3dPtr vZColumn, vZBeam;
hr |= csBeam->get_ZAxis(&vZBeam);
hr |= csColumn->get_ZAxis(&vZColumn);
VARIANT_BOOL vectArePerpendicular;
hr |= vZBeam->IsPerpendicularToTol(vZColumn, 0.01, &vectArePerpendicular);
if (VARIANT_TRUE == vectArePerpendicular)
{
//Get the plane where the beam and shortening intersect
IPlanePtr plShortening;
hr |= GetFacePlane(inputColumn, inputBeam, plShortening);
eBeamEnd beamCutEnd;
IPoint3dPtr ptClosestOnColumn;
hr |= plShortening->get_PointOnPlane(&ptClosestOnColumn);
//Get the beam cs in the closest point on the column
ICS3dPtr csBeamAtIntersectionPoint;
hr |= inputBeam->getCSAtPoint(ptClosestOnColumn, &csBeamAtIntersectionPoint);
//Find the cs where at the beam end that needs to be cut
ICS3dPtr csCutBeam;
hr |= inputBeam->getCutOuterCS(VARIANT_TRUE, inputColumn, -1, &csCutBeam, &beamCutEnd, VARIANT_TRUE);
//Add a shortening to trim/extend the beam until it touches the column
IBeamShorteningPtr shortening;
hr |= inputBeam->addBeamShortening(beamCutEnd, plShortening, &shortening);
if (hr == S_OK)
hr |= createdObjects->Add(shortening);
//Create an L shaped beam as the first clip angle cleat
//We want to put 2 L shaped beams perpendicular to the input beam - on the input beam Z
IProfTypePtr profType;
hr |= profType.CreateInstance("DSCProfilesAccessCom.ProfType");
hr |= profType->createProfType(m_sProfType, m_sProfSize);
IVector3dPtr vectLBeamDir, vectLBeamTranslationX, vectLBeamTranslationY;
hr |= csBeamAtIntersectionPoint->get_ZAxis(&vectLBeamDir);
hr |= csBeamAtIntersectionPoint->get_XAxis(&vectLBeamTranslationX);
hr |= csBeamAtIntersectionPoint->get_YAxis(&vectLBeamTranslationY);
//Compute the first cleat it's start/endpoints
IPoint3dPtr ptCleatStart, ptOnPlane;
hr |= plShortening->get_PointOnPlane(&ptOnPlane);
hr |= MovePoint(ptOnPlane, vectLBeamDir, -100, ptCleatStart);
//Find the beam we thickness and offset the cleat outside it a bit
IProfTypePtr profBeam;
hr |= inputBeam->getProfType(&profBeam);
double dBeamWeb = 0.;
hr |= profBeam->getGeometricalData(kWeb, &dBeamWeb);
hr |= MovePoint(ptCleatStart, vectLBeamTranslationY, -dBeamWeb / 2, ptCleatStart);
IPoint3dPtr ptCleatEnd;
hr |= MovePoint(ptCleatStart, vectLBeamDir, 200, ptCleatEnd);
//Create a model role for the first cleat
IRolePtr spRole;
hr |= m_pJoint->CreateRole(CString(L"Angle_Cleat#1").AllocSysString(), &spRole);
ICS3dPtr csCleat;
hr |= csCleat.CreateInstance("DSCGeomCom.CS3d");
hr |= csCleat->setFrom(csBeamAtIntersectionPoint);
hr |= csCleat->RotateCSAroundY(M_PI / 2);
hr |= csCleat->RotateCSAroundX(M_PI);
//Finnaly, create the beam
IStraightBeamPtr firstCleat;
hr |= m_pJoint->CreateStraightBeam(m_sProfType, m_sProfSize, spRole, ptCleatStart, ptCleatEnd, csCleat, &firstCleat);
if (hr == S_OK)
{
hr |= firstCleat->put_refAxis(kLowerLeft);
hr |= createdObjects->Add(firstCleat);
//We will move the cleat cs to create the second cleat, therefore save it, for later when we create the bolts
ICS3dPtr csBolts;
hr |= csBolts.CreateInstance("DSCGeomCom.CS3d");
hr |= csBolts->setFrom(csCleat);
//Perform calculations for the second cleat
IPoint3dPtr ptBoltsOrig;
hr |= ptBoltsOrig.CreateInstance("DSCGeomCom.Point3d");
hr |= ptBoltsOrig->setFrom(ptCleatStart);
hr |= MovePoint(ptBoltsOrig, vectLBeamDir, 100, ptBoltsOrig);
hr |= csBolts->put_Origin(ptBoltsOrig);
hr |= MovePoint(ptCleatEnd, vectLBeamTranslationY, dBeamWeb, ptCleatEnd);
hr |= MovePoint(ptCleatStart, vectLBeamTranslationY, dBeamWeb, ptCleatStart);
ICS3dPtr csCleat2;
hr |= csCleat2.CreateInstance("DSCGeomCom.CS3d");
hr |= csCleat2->setFrom(csBeamAtIntersectionPoint);
hr |= csCleat2->RotateCSAroundZ(M_PI);
hr |= csCleat2->put_Origin(ptCleatStart);
//Create the cleat
IStraightBeamPtr secondCleat;
hr |= m_pJoint->CreateStraightBeam(m_sProfType, m_sProfSize, spRole, ptCleatEnd, ptCleatStart, csCleat, &secondCleat);
if (hr == S_OK)
{
//Now connect the L shaped beams with bolts on the main column and beam
hr |= secondCleat->put_refAxis(kLowerLeft);
hr |= createdObjects->Add(secondCleat);
hr |= CreateBoltPattern("Bolt#1", 100, 60, 3, 2, csBolts, firstCleat, secondCleat, inputColumn, createdObjects);
hr |= csBolts->RotateCSAroundX(M_PI / 2);
IPoint3dPtr ptCsBoltOrig, csOrig;
hr |= csBolts->get_Origin(&csOrig);
hr |= MovePoint(csOrig, vectLBeamTranslationX, -50, ptCsBoltOrig);
hr |= MovePoint(ptCsBoltOrig, vectLBeamTranslationY, 40, ptCsBoltOrig);
hr |= csBolts->put_Origin(ptCsBoltOrig);
hr |= CreateBoltPattern(L"Bolt#2", 50, 60, 3, 1, csBolts, firstCleat, secondCleat, inputBeam, createdObjects);
}
}
}
}
catch (_com_error& e)
{
hr = e.Error();
ruleCreateObjectsMethodStatus = hr;
}
catch (...)
{
hr = E_FAIL;
ruleCreateObjectsMethodStatus = hr;
}
}
VARIANT_BOOL finishedCorrectly = VARIANT_TRUE;
if (SUCCEEDED(ruleCreateObjectsMethodStatus))
finishedCorrectly = VARIANT_TRUE;
else
finishedCorrectly = VARIANT_FALSE;
hr = m_pJoint->put_CreationStatus(finishedCorrectly);
hr = m_pJoint->put_CreatedObjects(createdObjects);
return ruleCreateObjectsMethodStatus;
}
STDMETHODIMP SampleClipAngle::GetUserPages(IRulePageArray* pagesRet, IPropertySheetData* pPropSheetData)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
pPropSheetData->put_SheetPrompt(88270);
pPropSheetData->put_ResizeOption(kStandard);
IRulePagePtr page;
m_pJoint->CreateRulePage(&page);
page->put_title(88271);
m_page = new NativeClipAnglePage();
m_page->Create(IDD_CLIPANGLEDIALOG, NativeClipAnglePage::GetParentWindow());
m_page->setJoint(this);
page->put_hWnd((DWORD_PTR)m_page->GetSafeHwnd());
pagesRet->Add(page);
return S_OK;
}
//unload all pages
STDMETHODIMP SampleClipAngle::FreeUserPages()
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
if (m_page)
{
m_page->DestroyWindow();
delete m_page;
m_page = NULL;
}
return S_OK;
}
STDMETHODIMP SampleClipAngle::GetExportData(IRuleExportFiler* pExportFiler)
{
return S_OK;
}
STDMETHODIMP SampleClipAngle::GetFeatureName(BSTR* FeatureName, VARIANT_BOOL* hasFeature)
{
HRESULT hr = S_OK;
if (FeatureName == NULL || hasFeature == NULL)
return E_POINTER;
*hasFeature = VARIANT_FALSE;
return hr;
}
STDMETHODIMP SampleClipAngle::InvalidFeature(int reserved)
{
HRESULT hr = S_OK;
return hr;
}
STDMETHODIMP SampleClipAngle::ConvertFromHRL(IConvertFiler* filer, BSTR OldHRLRuleName, VARIANT_BOOL* Converted)
{
HRESULT hr = S_OK;
*Converted = VARIANT_FALSE;
return hr;
}
//Returns the beam cs at the given point
HRESULT
SampleClipAngle::GetBeamCSAtPoint(IBeamPtr spBeam, IPoint3dPtr spPoint, ICS3dPtr& spCS)
{
//TO DO - Add comments
//Get the beam cs at start
HRESULT hr = E_FAIL;
ICS3dPtr spStartCS;
hr = spBeam->getSysCSAt(kBeamStart, &spStartCS);
IMatrix3dPtr spAlignMatrix;
IPoint3dPtr spCSPoint;
hr = spBeam->getClosestPointToSystemline(spPoint, VARIANT_FALSE, &spCSPoint);
hr = spBeam->getCSAtPoint(spCSPoint, &spCS);
hr = spStartCS->SetToAlignCS(spCS, &spAlignMatrix);
hr = spCS->get_Origin(&spCSPoint);
IVector3dPtr spOffsetVector;
hr = spBeam->GetCurrentSys2Phys3dOffset(&spOffsetVector);
hr = spOffsetVector->TransformBy(spAlignMatrix);
hr = spCSPoint->Add(spOffsetVector);
hr = spCS->put_Origin(spCSPoint);
return hr;
}
HRESULT
SampleClipAngle::IntersectBeam(IStraightBeamPtr beam, IPoint3dPtr linePt, IVector3dPtr lineVect, IPoint3dArrayPtr &ptsInter)
{
//Create a line from the input point and vector
ILine3dPtr line;
HRESULT hr = S_OK;
hr |= line.CreateInstance("DSCGeomCom.Line3d");
hr |= line->CreateFromVectorAndPoint(linePt, lineVect);
//Get the body of the column
IAstModelerPtr bodyColumn;
hr |= beam->getAstModeler(kBodyUnNotched, &bodyColumn);
//Interect it with the line
hr |= bodyColumn->intersectWithLine(line, &ptsInter);
//Return the resulted intersection points
return hr;
}
HRESULT
SampleClipAngle::GetFacePlane(IStraightBeamPtr inputColumn, IStraightBeamPtr inputBeam, IPlanePtr &resPlane)
{
HRESULT hr = S_OK;
//Result plane
resPlane.CreateInstance("DSCGeomCom.Plane");
//Get the beam outer cs
eBeamEnd beamStart;
ICS3dPtr outerCS;
hr |= inputBeam->getCutOuterCS(VARIANT_TRUE, inputColumn, -1, &outerCS, &beamStart, VARIANT_TRUE);
//Change the z vector direction
IVector3dPtr outerVectZ;
hr |= outerCS->get_ZAxis(&outerVectZ);
hr |= outerVectZ->Multiply(-1);
IPoint3dPtr outerCSOrigin;
hr |= outerCS->get_Origin(&outerCSOrigin);
//Get the column cs at the outer cs origin
ICS3dPtr mainCSAtPoint;
hr |= GetBeamCSAtPoint(inputColumn, outerCSOrigin, mainCSAtPoint);
//Compute tranformation matrix
IPoint3dPtr axisPoint;
hr |= mainCSAtPoint->get_Origin(&axisPoint);
ICS3dPtr midCS;
hr |= inputColumn->get_PhysicalCSMid(&midCS);
IMatrix3dPtr alignMatrix;
hr |= mainCSAtPoint->SetToAlignCS(midCS, &alignMatrix);
//Transform the points which will constitute the line which we want to intersect with the beam
hr |= axisPoint->TransformBy(alignMatrix);
hr |= outerVectZ->TransformBy(alignMatrix);
//Get the intersection points
IPoint3dArrayPtr intersectionPts;
hr |= IntersectBeam(inputColumn, axisPoint, outerVectZ, intersectionPts);
//If we have intersection points, create a plane at the first intersection point
VARIANT count;
hr |= intersectionPts->get_Count(&count);
if (count.intVal != 0)
{
IPoint3dPtr tempPt;
hr |= intersectionPts->get_Item(CComVariant(0), &tempPt);
hr |= axisPoint->setFrom(tempPt);
hr |= midCS->SetToAlignCS(mainCSAtPoint, &alignMatrix);
hr |= axisPoint->TransformBy(alignMatrix);
hr |= outerVectZ->TransformBy(alignMatrix);
hr |= resPlane->CreateFromPointAndNormal(axisPoint, outerVectZ);
}
VariantClear(&count);
return hr;
}
HRESULT
SampleClipAngle::MovePoint(IPoint3dPtr ptIn, IVector3dPtr vMove, double moveDist, IPoint3dPtr& retPoint)
{
HRESULT hr = S_OK;
hr |= retPoint.CreateInstance("DSCGeomCom.Point3d");
hr |= retPoint->setFrom(ptIn);
IVector3dPtr vect1;
hr |= vect1.CreateInstance("DSCGeomCom.Vector3d");
hr |= vect1->setFrom(vMove);
hr |= vect1->Normalize();
hr |= vect1->Multiply(moveDist);
hr |= retPoint->Add(vect1);
return hr;
}
HRESULT
SampleClipAngle::CreateBoltPattern(CString boltRole, double dBoltWidth, double dBoltHeight, int nXBolts, int nYBolts, ICS3dPtr csBolts, IBeamPtr cleat1, IBeamPtr cleat2, IBeamPtr beam, IAstObjectsArrPtr& createdObjectsArr)
{
HRESULT hr = S_OK;
//CProfileUtils pu;
IRolePtr role;
hr |= m_pJoint->CreateRole(boltRole.AllocSysString(), &role); //role object
IBoltPtr bolt;
hr |= m_pJoint->CreateBoltFinitRect(role, m_sBoltsMaterial, m_sBoltsStandard, 0, 0, dBoltHeight, dBoltWidth, nXBolts, nYBolts, m_dBoltsDiameter, csBolts, &bolt);
if (hr == S_OK)
{
IAstObjectsArrPtr conObj;
hr |= m_pJoint->CreateObjectsArray(&conObj);
hr |= conObj->Add(cleat1);
hr |= conObj->Add(cleat2);
hr |= conObj->Add(beam);
hr |= bolt->Connect(conObj, kOnSite);
hr |= createdObjectsArr->Add(bolt);
}
return hr;
}
STDMETHODIMP SampleClipAngle::BoldParameters(SAFEARRAY** pArrParams)
{
HRESULT hr = S_OK;
return hr;
}
@@ -0,0 +1,67 @@
#pragma once
class SampleClipAngle :
public IDispatchImpl<ISampleClipAngle, &IID_ISampleClipAngle, &LIBID_SampleClipJointLib>,
public ISupportErrorInfo,
public CComObjectRoot,
public CComCoClass<SampleClipAngle, &CLSID_SampleClipAngle>,
public IDispatchImpl<IRule, &IID_IRule, &LIBID_AstSTEELAUTOMATIONLib, MAJVER_AstSTEELAUTOMATIONLib>,
public IDispatchImpl<IRuleExtension, &IID_IRuleExtension, &LIBID_AstSTEELAUTOMATIONLib, MAJVER_AstSTEELAUTOMATIONLib>
{
private:
IJoint* m_pJoint;
HRESULT MovePoint(IPoint3dPtr ptIn, IVector3dPtr vMove, double moveDist, IPoint3dPtr& retPoint);
HRESULT CreateBoltPattern(CString boltRole, double dBoltWidth, double dBoltHeight, int nXBolts, int nYBolts, ICS3dPtr csBolts, IBeamPtr cleat1, IBeamPtr cleat2, IBeamPtr beam, IAstObjectsArrPtr& createdObjectsArr);
HRESULT IntersectBeam(IStraightBeamPtr beam, IPoint3dPtr linePt, IVector3dPtr lineVect, IPoint3dArrayPtr &ptsIntersection);
HRESULT GetBeamCSAtPoint(IBeamPtr spBeam, IPoint3dPtr spPoint, ICS3dPtr& spCS);
HRESULT GetFacePlane(IStraightBeamPtr inputColumn, IStraightBeamPtr inputBeam, IPlanePtr &resPlane);
void SplitBeamsInternalName(BSTR fullInternal, BSTR& classInternal, BSTR& sectionInternal);
public:
BEGIN_COM_MAP(SampleClipAngle)
//DEL COM_INTERFACE_ENTRY(IDispatch)
COM_INTERFACE_ENTRY(ISampleClipAngle)
COM_INTERFACE_ENTRY(ISupportErrorInfo)
COM_INTERFACE_ENTRY2(IDispatch, ISampleClipAngle)
COM_INTERFACE_ENTRY(IRule)
COM_INTERFACE_ENTRY(IRuleExtension)
END_COM_MAP()
//DECLARE_NOT_AGGREGATABLE(CUSClipAngle)
// Remove the comment from the line above if you don't want your object to
// support aggregation.
DECLARE_REGISTRY_RESOURCEID(IDR_SampleClipAngle)
// ISupportsErrorInfo
STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
// IRule
STDMETHOD(get_Joint)(IJoint** pVal);
STDMETHOD(put_Joint)(IJoint* pVal);
STDMETHOD(Query)(IAstUI* pAstUI);
STDMETHOD(InField)(IFiler* pFiler);
STDMETHOD(OutField)(IFiler* pFiler);
STDMETHOD(GetTableName)(BSTR* pStrTableName);
STDMETHOD(CreateObjects)();
STDMETHOD(GetUserPages)(IRulePageArray* pagesRet, IPropertySheetData* pPropSheetData);
STDMETHOD(FreeUserPages)();
STDMETHOD(GetExportData)(IRuleExportFiler* pExportFiler);
STDMETHOD(GetFeatureName)(BSTR* FeatureName, VARIANT_BOOL* hasFeature);
STDMETHOD(InvalidFeature)(INT reserved);
STDMETHOD(ConvertFromHRL)(IConvertFiler* filer, BSTR OldHRLRuleName, VARIANT_BOOL* Converted);
STDMETHOD(BoldParameters)(SAFEARRAY**);
class NativeClipAnglePage* m_page;
BSTR m_sProfType;
BSTR m_sProfSize;
BSTR m_sBoltsStandard;
BSTR m_sBoltsMaterial;
BSTR m_sBoltsSet;
double m_dBoltsDiameter;
};
@@ -0,0 +1,23 @@
HKCR
{
SampleClipAngleNative.SampleClipAngle.1 = s 'SampleClipAngle Class'
{
CLSID = s '{FD62E6AB-0412-4F2B-9DB8-C5D5385F8042}'
}
SampleClipAngleNative.SampleClipAngle = s 'SampleClipAngle Class'
{
CLSID = s '{FD62E6AB-0412-4F2B-9DB8-C5D5385F8042}'
}
NoRemove CLSID
{
ForceRemove {FD62E6AB-0412-4F2B-9DB8-C5D5385F8042} = s 'SampleClipAngle Class'
{
ProgID = s 'SampleClipAngleNative.SampleClipAngle.1'
VersionIndependentProgID = s 'SampleClipAngleNative.SampleClipAngle'
InprocServer32 = s '%MODULE%'
{
val ThreadingModel = s 'Apartment'
}
}
}
}
@@ -0,0 +1,88 @@
#include "pch.h"
#include <initguid.h>
#include "SampleClipAngleNative_i.c"
CComModule _Module;
BEGIN_OBJECT_MAP(ObjectMap)
OBJECT_ENTRY(CLSID_SampleClipAngle, SampleClipAngle)
END_OBJECT_MAP()
class SampleClipAngleApp : public CWinApp
{
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAstJointsAS61App)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
//}}AFX_VIRTUAL
//{{AFX_MSG(CAstJointsAS61App)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
BEGIN_MESSAGE_MAP(SampleClipAngleApp, CWinApp)
//{{AFX_MSG_MAP(CAstJointsAS61App)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
SampleClipAngleApp theApp;
BOOL SampleClipAngleApp::InitInstance()
{
AfxEnableControlContainer();
_Module.Init(ObjectMap, m_hInstance, &LIBID_SampleClipJointLib);
return CWinApp::InitInstance();
}
int SampleClipAngleApp::ExitInstance()
{
_Module.Term();
return CWinApp::ExitInstance();
}
/////////////////////////////////////////////////////////////////////////////
// Used to determine whether the DLL can be unloaded by OLE
STDAPI DllCanUnloadNow(void)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
return (AfxDllCanUnloadNow() == S_OK && _Module.GetLockCount() == 0) ? S_OK : S_FALSE;
}
/////////////////////////////////////////////////////////////////////////////
// Returns a class factory to create an object of the requested type
STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{
return _Module.GetClassObject(rclsid, riid, ppv);
}
/////////////////////////////////////////////////////////////////////////////
// DllRegisterServer - Adds entries to the system registry
STDAPI DllRegisterServer(void)
{
// registers object, typelib and all interfaces in typelib
return _Module.RegisterServer(TRUE);
}
/////////////////////////////////////////////////////////////////////////////
// DllUnregisterServer - Removes entries from the system registry
STDAPI DllUnregisterServer(void)
{
return _Module.UnregisterServer(TRUE);
}
@@ -0,0 +1,200 @@
// NativeClipAnglePage.cpp : implementation file
//
#include "pch.h"
#include "afxdialogex.h"
#include "NativeClipAnglePage.h"
// NativeClipAnglePage dialog
CWnd* NativeClipAnglePage::m_pWnd = NULL;
IMPLEMENT_DYNAMIC(NativeClipAnglePage, CDialog)
NativeClipAnglePage::NativeClipAnglePage(CWnd* pParent /*=nullptr*/)
: CDialog(IDD_CLIPANGLEDIALOG, pParent)
{
m_pCurRule = nullptr;
m_bIsInitialising = true;
}
NativeClipAnglePage::~NativeClipAnglePage()
{
if (m_pCurRule)
{
m_pCurRule->Release();
m_pCurRule = NULL;
}
}
void
NativeClipAnglePage::setJoint(SampleClipAngle* pVal)
{
if (m_pCurRule)
{
m_pCurRule->Release();
m_pCurRule = NULL;
}
m_pCurRule = pVal;
m_pCurRule->AddRef();
//angle
_bstr_t tmpClass(m_pCurRule->m_sProfType, TRUE); //avoid memory leaks
_bstr_t tmpName(m_pCurRule->m_sProfSize, TRUE); //avoid memory leaks
m_Profile.SetCurrentProfileName(CString("AISC 15.0 Angle equal#@§@#L4X4X3/8").AllocSysString());
m_Profile.SetUseFilterClass(TRUE);
m_Profile.SetShowHideAllSections(TRUE);
m_Profile.AppendAcceptedClassGroup(CString("W").AllocSysString());
m_Profile.SetCurrentClass((LPCTSTR)tmpClass);
m_Profile.SetCurrentSection((LPCTSTR)tmpName);
_bstr_t boltsStd(m_pCurRule->m_sBoltsStandard, true);
_bstr_t boltsMat(m_pCurRule->m_sBoltsMaterial, true);
_bstr_t boltSet(m_pCurRule->m_sBoltsSet, true);
m_Bolts.SetBoltStandard((LPCTSTR)boltsStd);
m_Bolts.SetBoltMaterial((LPCTSTR)boltsMat);
m_Bolts.SetBoltSet((LPCTSTR)boltSet);
m_Bolts.SetBoltDiameter(m_pCurRule->m_dBoltsDiameter);
UpdateData(FALSE);
m_bIsInitialising = false;
}
void NativeClipAnglePage::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_ASTPROFILECONTROL1, m_Profile);
DDX_Control(pDX, IDC_BOLTSTANDARDSCTRL1, m_Bolts);
}
CWnd*
NativeClipAnglePage::GetParentWindow()
{
if (m_pWnd == nullptr)
{
// Restore the module state from the main executable, in order to access the main hwnd
AFX_MODULE_STATE* appModuleState = AfxGetAppModuleState();
// Get the current module state
AFX_MODULE_STATE* currModuleState = AfxGetModuleState();
// Switch the module state
AfxSetModuleState(appModuleState);
m_pWnd = AfxGetMainWnd();
if (m_pWnd == nullptr)
{
try
{
CWinApp* pApp = AfxGetApp();
if (pApp)
{
m_pWnd = pApp->GetMainWnd();
if (m_pWnd == nullptr)
{
m_pWnd = (CFrameWnd*)pApp->m_pMainWnd;
}
}
}
catch (...)
{
}
}
// Switch back the module state
AfxSetModuleState(currModuleState);
}
return m_pWnd;
}
void
NativeClipAnglePage::OnProfileChanged()
{
// TODO: Add your control notification handler code here
if (!m_bIsInitialising && m_pCurRule)
{
UpdateData(TRUE);
IJointPtr curJoint;
m_pCurRule->get_Joint(&curJoint);
if (m_Profile.GetEnabled() == FALSE)
{
return;
}
_bstr_t tempClassJoint(m_pCurRule->m_sProfType, TRUE);
_bstr_t tempNameJoint(m_pCurRule->m_sProfSize, TRUE);
_bstr_t tempClassDialog(m_Profile.GetCurrentClass().AllocSysString(), TRUE);
_bstr_t tempNameDialog(m_Profile.GetCurrentSection().AllocSysString(), TRUE);
if (tempClassJoint != tempClassDialog ||
tempNameJoint != tempNameDialog)
{
CString currentClass = m_Profile.GetCurrentClass();
CString currentSection = m_Profile.GetCurrentSection();
m_pCurRule->m_sProfType = currentClass.AllocSysString();
m_pCurRule->m_sProfSize = currentSection.AllocSysString();
//setGrayedVals();
curJoint->SaveData(m_pCurRule);
curJoint->UpdateDrivenConstruction();
}
}
}
void
NativeClipAnglePage::OnBoltsChanged()
{
if (!m_bIsInitialising && m_pCurRule)
{
UpdateData(TRUE);
IJointPtr curJoint;
m_pCurRule->get_Joint(&curJoint);
bool bRet = false;
double tempValueDiameter = m_Bolts.GetBoltDiameter();
_bstr_t tempValueGrade((m_Bolts.GetBoltMaterial()).AllocSysString(), TRUE);
_bstr_t tempValueAssembly((m_Bolts.GetBoltSet()).AllocSysString(), TRUE);
_bstr_t tempValueType((m_Bolts.GetBoltStandard()).AllocSysString(), TRUE);
_bstr_t jointGrade(m_pCurRule->m_sBoltsMaterial, TRUE);
_bstr_t jointAssembly(m_pCurRule->m_sBoltsSet, TRUE);
_bstr_t jointType(m_pCurRule->m_sBoltsStandard, TRUE);
if ((tempValueDiameter != m_pCurRule->m_dBoltsDiameter) ||
(tempValueGrade != jointGrade) ||
(tempValueAssembly != jointAssembly) ||
(tempValueType != jointType))
{
m_pCurRule->m_dBoltsDiameter = tempValueDiameter;
m_pCurRule->m_sBoltsMaterial = CString(tempValueGrade.GetBSTR()).AllocSysString();
m_pCurRule->m_sBoltsSet = CString(tempValueAssembly.GetBSTR()).AllocSysString();
m_pCurRule->m_sBoltsStandard = CString(tempValueType.GetBSTR()).AllocSysString();
curJoint->SaveData(m_pCurRule);
curJoint->UpdateDrivenConstruction();
}
}
}
BEGIN_MESSAGE_MAP(NativeClipAnglePage, CDialog)
END_MESSAGE_MAP()
// NativeClipAnglePage message handlers
BEGIN_EVENTSINK_MAP(NativeClipAnglePage, CDialog)
//{{AFX_EVENTSINK_MAP(CUSClipAngle_Page1)
ON_EVENT(NativeClipAnglePage, IDC_ASTPROFILECONTROL1, 20 /* ProfileChanged */, OnProfileChanged, VTS_NONE)
ON_EVENT(NativeClipAnglePage, IDC_BOLTSTANDARDSCTRL1, 5 /* ProfileChanged */, OnBoltsChanged, VTS_NONE)
END_EVENTSINK_MAP()
@@ -0,0 +1,39 @@
#pragma once
#include "afxdialogex.h"
#include "astprofilecontrol.h"
#include "boltstandards.h"
// NativeClipAnglePage dialog
class NativeClipAnglePage : public CDialog
{
DECLARE_DYNAMIC(NativeClipAnglePage)
private:
SampleClipAngle* m_pCurRule;
static CWnd* m_pWnd;
CAstProfileControl m_Profile;
CBoltStandards m_Bolts;
bool m_bIsInitialising;
public:
NativeClipAnglePage(CWnd* pParent = nullptr); // standard constructor
virtual ~NativeClipAnglePage();
void setJoint(SampleClipAngle* pVal);
static CWnd* GetParentWindow();
// Dialog Data
//#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_CLIPANGLEDIALOG};
//#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
afx_msg void OnProfileChanged();
afx_msg void OnBoltsChanged();
DECLARE_EVENTSINK_MAP()
DECLARE_MESSAGE_MAP()
};
@@ -0,0 +1,6 @@
; SampleClipAngle.def : Declares the module parameters.
EXPORTS
DllCanUnloadNow PRIVATE
DllGetClassObject PRIVATE
DllRegisterServer PRIVATE
DllUnregisterServer PRIVATE
@@ -0,0 +1,145 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winres.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (United States) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#include ""winres.h""\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"1 TYPELIB ""SampleClipAngleNative.tlb""\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_CLIPANGLEDIALOG DIALOGEX 0, 0, 528, 219
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
FONT 8, "MS Shell Dlg", 400, 0, 0x0
BEGIN
CONTROL "",IDC_BOLTSTANDARDSCTRL1,
"{0C4B9CAC-B571-4906-B006-06FC98473734}",WS_TABSTOP,59,32,148,60
CONTROL "",IDC_ASTPROFILECONTROL1,
"{574D51EF-85F9-415C-81CE-5A0FC45B1F79}",WS_TABSTOP,59,10,149,14
LTEXT "Cleat profile",IDC_STATIC,12,10,47,8
LTEXT "Bolt Diameter",IDC_STATIC,12,32,47,8
LTEXT "Bolt Type",IDC_STATIC,12,47,47,8
LTEXT "Bolt Grade",IDC_STATIC,12,62,47,8
LTEXT "Bolt Assembly",IDC_STATIC,12,77,47,8
CONTROL "",IDC_ASTBITMAPCONTROL1,
"{916DA9C4-75E2-46C6-A41F-E1522ECCF871}",WS_TABSTOP,212,10,92,65
END
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_CLIPANGLEDIALOG, DIALOG
BEGIN
LEFTMARGIN, 6
RIGHTMARGIN, 521
TOPMARGIN, 7
BOTTOMMARGIN, 212
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Dialog Info
//
IDD_CLIPANGLEDIALOG DLGINIT
BEGIN
IDC_BOLTSTANDARDSCTRL1, 0x376, 64, 0
0x0000, 0x0000, 0x0003, 0x0001, 0x16f2, 0x0000, 0x0a21, 0x0000, 0x0044,
0x0000, 0x01ff, 0x0000, 0x0000, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff,
0xffff, 0xffff, 0xffff, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xfeff,
0x00ff, 0xfeff, 0x00ff, 0xfeff, 0x00ff,
IDC_ASTPROFILECONTROL1, 0x376, 191, 0
0x0000, 0x0000, 0x0003, 0x0001, 0x1727, 0x0000, 0x0261, 0x0000, 0x0044,
0x0000, 0x01ff, 0xff00, 0xfffe, 0x4122, 0x4900, 0x5300, 0x4300, 0x2000,
0x3100, 0x3500, 0x2e00, 0x3000, 0x2000, 0x4100, 0x6e00, 0x6700, 0x6c00,
0x6500, 0x2000, 0x6500, 0x7100, 0x7500, 0x6100, 0x6c00, 0x2300, 0x4000,
0xa700, 0x4000, 0x2300, 0x4c00, 0x3400, 0x5800, 0x3400, 0x5800, 0x3300,
0x2f00, 0x3800, 0xff00, 0xfffe, 0x4115, 0x4900, 0x5300, 0x4300, 0x2000,
0x3100, 0x3500, 0x2e00, 0x3000, 0x2000, 0x4100, 0x6e00, 0x6700, 0x6c00,
0x6500, 0x2000, 0x6500, 0x7100, 0x7500, 0x6100, 0x6c00, 0xff00, 0xfffe,
0x4c08, 0x3400, 0x5800, 0x3400, 0x5800, 0x3300, 0x2f00, 0x3800, 0x0000,
0x0065, 0x0000, 0x0066, 0x0000, 0x0068, 0x0000, 0xff00, 0xffff, 0x00ff,
0x1e00, 0x0000, 0x0000, 0x0000, 0x0000, "\000"
IDC_ASTBITMAPCONTROL1, 0x376, 25, 0
0x0000, 0x0000, 0x0003, 0x0001, 0x0e43, 0x0000, 0x0af5, 0x0000, 0x0040,
0x0000, 0x5701, 0x00eb, "\000"
0
END
/////////////////////////////////////////////////////////////////////////////
//
// AFX_DIALOG_LAYOUT
//
IDD_CLIPANGLEDIALOG AFX_DIALOG_LAYOUT
BEGIN
0
END
#endif // English (United States) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
1 TYPELIB "SampleClipAngleNative.tlb"
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
@@ -0,0 +1,31 @@
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(4F30D30D-2821-4933-AFC3-64AB5CCA2AE2),
dual,
helpstring("ISampleClipAngle Interface"),
pointer_default(unique)
]
interface ISampleClipAngle : IDispatch
{
};
[
uuid(10B7FC2F-C086-4F40-8ECA-5109479299A0),
version(1.0),
helpstring("SampleClipAngle 1.0 Type Library")
]
library SampleClipJointLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(FD62E6AB-0412-4F2B-9DB8-C5D5385F8042),
helpstring("USClipAngle Class")
]
coclass SampleClipAngle
{
[default] interface ISampleClipAngle;
};
};
@@ -0,0 +1,259 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\StructuralConnectionsSDKSamples.Common.props" />
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{42debbf6-6fa4-4fec-97a4-c6a0c994a4fc}</ProjectGuid>
<RootNamespace>SampleClipAngleC</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<ProjectName>SampleClipAngleNative</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<UseOfMfc>Dynamic</UseOfMfc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>..\..\Binaries\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>..\..\Binaries\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>..\..\Binaries\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>..\..\Binaries\</OutDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;SAMPLECLIPANGLEC_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<AdditionalIncludeDirectories>$(ASInstallDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
<ModuleDefinitionFile>SampleClipAngle.def</ModuleDefinitionFile>
</Link>
<Midl>
<HeaderFileName>$(ProjectName)_h.h</HeaderFileName>
<InterfaceIdentifierFileName>$(ProjectName)_i.c</InterfaceIdentifierFileName>
<ProxyFileName>$(ProjectName)_p.c</ProxyFileName>
<TypeLibraryName>$(ProjectName).tlb</TypeLibraryName>
</Midl>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;NDEBUG;SAMPLECLIPANGLEC_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<AdditionalIncludeDirectories>$(ASInstallDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
<ModuleDefinitionFile>SampleClipAngle.def</ModuleDefinitionFile>
</Link>
<Midl>
<HeaderFileName>$(ProjectName)_h.h</HeaderFileName>
<InterfaceIdentifierFileName>$(ProjectName)_i.c</InterfaceIdentifierFileName>
<ProxyFileName>$(ProjectName)_p.c</ProxyFileName>
<TypeLibraryName>$(ProjectName).tlb</TypeLibraryName>
</Midl>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;SAMPLECLIPANGLEC_EXPORTS;_WINDOWS;_USRDLL;_AFXDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<AdditionalIncludeDirectories>$(ASInstallDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
<ModuleDefinitionFile>SampleClipAngle.def</ModuleDefinitionFile>
</Link>
<Midl>
<OutputDirectory>
</OutputDirectory>
</Midl>
<Midl>
<HeaderFileName>$(ProjectName)_h.h</HeaderFileName>
</Midl>
<Midl>
<InterfaceIdentifierFileName>$(ProjectName)_i.c</InterfaceIdentifierFileName>
</Midl>
<Midl>
<ProxyFileName>$(ProjectName)_p.c</ProxyFileName>
<TypeLibraryName>$(ProjectName).tlb</TypeLibraryName>
</Midl>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;SAMPLECLIPANGLEC_EXPORTS;_WINDOWS;_USRDLL;_AFXDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<AdditionalIncludeDirectories>$(ASInstallDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
<ModuleDefinitionFile>SampleClipAngle.def</ModuleDefinitionFile>
</Link>
<Midl>
<HeaderFileName>$(ProjectName)_h.h</HeaderFileName>
<InterfaceIdentifierFileName>$(ProjectName)_i.c</InterfaceIdentifierFileName>
<ProxyFileName>$(ProjectName)_p.c</ProxyFileName>
<TypeLibraryName>$(ProjectName).tlb</TypeLibraryName>
</Midl>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="astbitmapcontrol.h" />
<ClInclude Include="astcheckboxcontrol.h" />
<ClInclude Include="astcombotablecontrol.h" />
<ClInclude Include="astgratingcontrol.h" />
<ClInclude Include="astmodelrolecontrol.h" />
<ClInclude Include="astocxgrid.h" />
<ClInclude Include="astprofilecontrol.h" />
<ClInclude Include="aststaticprompt.h" />
<ClInclude Include="aststatictextcontrol.h" />
<ClInclude Include="astunitcontrol.h" />
<ClInclude Include="astweldcontrol.h" />
<ClInclude Include="boltstandards.h" />
<ClInclude Include="ClipAngle.h" />
<ClInclude Include="font.h" />
<ClInclude Include="framework.h" />
<ClInclude Include="NativeClipAnglePage.h" />
<ClInclude Include="pch.h" />
<ClInclude Include="resource.h" />
<ClInclude Include="unitsmanager.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="astbitmapcontrol.cpp" />
<ClCompile Include="astcheckboxcontrol.cpp" />
<ClCompile Include="astcombotablecontrol.cpp" />
<ClCompile Include="astgratingcontrol.cpp" />
<ClCompile Include="astmodelrolecontrol.cpp" />
<ClCompile Include="astocxgrid.cpp" />
<ClCompile Include="astprofilecontrol.cpp" />
<ClCompile Include="aststaticprompt.cpp" />
<ClCompile Include="aststatictextcontrol.cpp" />
<ClCompile Include="astunitcontrol.cpp" />
<ClCompile Include="astweldcontrol.cpp" />
<ClCompile Include="boltstandards.cpp" />
<ClCompile Include="ClipAngle.cpp" />
<ClCompile Include="ClipAngleApp.cpp" />
<ClCompile Include="font.cpp" />
<ClCompile Include="NativeClipAnglePage.cpp" />
<ClCompile Include="pch.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="unitsmanager.cpp" />
</ItemGroup>
<ItemGroup>
<Midl Include="SampleClipAngleNative.idl" />
</ItemGroup>
<ItemGroup>
<None Include="ClipAngle.rgs" />
<None Include="SampleClipAngle.def" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="SampleClipAngle.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
@@ -0,0 +1,150 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="framework.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="pch.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="ClipAngle.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="resource.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="NativeClipAnglePage.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="astprofilecontrol.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="boltstandards.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="unitsmanager.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="astweldcontrol.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="astunitcontrol.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="aststatictextcontrol.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="aststaticprompt.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="astbitmapcontrol.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="astcheckboxcontrol.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="astcombotablecontrol.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="astgratingcontrol.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="astocxgrid.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="astmodelrolecontrol.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="font.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="pch.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="ClipAngle.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="ClipAngleApp.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="NativeClipAnglePage.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="astprofilecontrol.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="boltstandards.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="astcombotablecontrol.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="unitsmanager.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="astweldcontrol.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="astunitcontrol.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="aststatictextcontrol.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="aststaticprompt.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="astmodelrolecontrol.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="astocxgrid.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="astgratingcontrol.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="astbitmapcontrol.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="astcheckboxcontrol.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="font.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Midl Include="SampleClipAngleNative.idl">
<Filter>Source Files</Filter>
</Midl>
</ItemGroup>
<ItemGroup>
<None Include="ClipAngle.rgs">
<Filter>Resource Files</Filter>
</None>
<None Include="SampleClipAngle.def">
<Filter>Source Files</Filter>
</None>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="SampleClipAngle.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
@@ -0,0 +1,41 @@
// 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 "pch.h"
#include "astbitmapcontrol.h"
/////////////////////////////////////////////////////////////////////////////
// CAstBitmapControl
IMPLEMENT_DYNCREATE(CAstBitmapControl, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CAstBitmapControl properties
long CAstBitmapControl::GetKey()
{
long result;
GetProperty(0x1, VT_I4, (void*)&result);
return result;
}
void CAstBitmapControl::SetKey(long propVal)
{
SetProperty(0x1, VT_I4, propVal);
}
BOOL CAstBitmapControl::GetEnabled()
{
BOOL result;
GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
return result;
}
void CAstBitmapControl::SetEnabled(BOOL propVal)
{
SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CAstBitmapControl operations
@@ -0,0 +1,53 @@
#if !defined(AFX_ASTBITMAPCONTROL_H__E09120E3_6AA7_4764_8EC4_A794AAE392AE__INCLUDED_)
#define AFX_ASTBITMAPCONTROL_H__E09120E3_6AA7_4764_8EC4_A794AAE392AE__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.
/////////////////////////////////////////////////////////////////////////////
// CAstBitmapControl wrapper class
class CAstBitmapControl : public CWnd
{
protected:
DECLARE_DYNCREATE(CAstBitmapControl)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x916da9c4, 0x75e2, 0x46c6, { 0xa4, 0x1f, 0xe1, 0x52, 0x2e, 0xcc, 0xf8, 0x71 } };
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:
long GetKey();
void SetKey(long);
BOOL GetEnabled();
void SetEnabled(BOOL);
// Operations
public:
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ASTBITMAPCONTROL_H__E09120E3_6AA7_4764_8EC4_A794AAE392AE__INCLUDED_)
@@ -0,0 +1,55 @@
// 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 "pch.h"
#include "astcheckboxcontrol.h"
/////////////////////////////////////////////////////////////////////////////
// CAstCheckBoxControl
IMPLEMENT_DYNCREATE(CAstCheckBoxControl, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CAstCheckBoxControl properties
long CAstCheckBoxControl::GetCaptionKey()
{
long result;
GetProperty(0x1, VT_I4, (void*)&result);
return result;
}
void CAstCheckBoxControl::SetCaptionKey(long propVal)
{
SetProperty(0x1, VT_I4, propVal);
}
BOOL CAstCheckBoxControl::GetValue()
{
BOOL result;
GetProperty(0x2, VT_BOOL, (void*)&result);
return result;
}
void CAstCheckBoxControl::SetValue(BOOL propVal)
{
SetProperty(0x2, VT_BOOL, propVal);
}
BOOL CAstCheckBoxControl::GetEnabled()
{
BOOL result;
GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
return result;
}
void CAstCheckBoxControl::SetEnabled(BOOL propVal)
{
SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CAstCheckBoxControl operations
@@ -0,0 +1,55 @@
#if !defined(AFX_ASTCHECKBOXCONTROL_H__3DE7A33E_C3ED_419E_B57F_46CA43CD67B9__INCLUDED_)
#define AFX_ASTCHECKBOXCONTROL_H__3DE7A33E_C3ED_419E_B57F_46CA43CD67B9__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.
/////////////////////////////////////////////////////////////////////////////
// CAstCheckBoxControl wrapper class
class CAstCheckBoxControl : public CWnd
{
protected:
DECLARE_DYNCREATE(CAstCheckBoxControl)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x17d55625, 0x30d6, 0x421f, { 0x8a, 0x3f, 0x85, 0xc6, 0x15, 0xff, 0xa9, 0x3c } };
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:
long GetCaptionKey();
void SetCaptionKey(long);
BOOL GetValue();
void SetValue(BOOL);
BOOL GetEnabled();
void SetEnabled(BOOL);
// Operations
public:
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ASTCHECKBOXCONTROL_H__3DE7A33E_C3ED_419E_B57F_46CA43CD67B9__INCLUDED_)
@@ -0,0 +1,149 @@
// 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 "pch.h"
#include "astcombotablecontrol.h"
/////////////////////////////////////////////////////////////////////////////
// CAstComboTableControl
IMPLEMENT_DYNCREATE(CAstComboTableControl, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CAstComboTableControl properties
CString CAstComboTableControl::GetTableName()
{
CString result;
GetProperty(0x1, VT_BSTR, (void*)&result);
return result;
}
void CAstComboTableControl::SetTableName(LPCTSTR propVal)
{
SetProperty(0x1, VT_BSTR, propVal);
}
void CAstComboTableControl::SetDSNTableName(CString strDSN)
{
CString strDSNTableName = GetTableName();
if (!strDSNTableName.IsEmpty() && strDSNTableName.Find(_T("."))==-1)
{
strDSNTableName = CString(strDSN) + CString(L".") + strDSNTableName;
}
SetProperty(0x1, VT_BSTR, strDSNTableName.GetString());
}
long CAstComboTableControl::GetComboIndex()
{
long result;
GetProperty(0x2, VT_I4, (void*)&result);
return result;
}
void CAstComboTableControl::SetComboIndex(long propVal)
{
SetProperty(0x2, VT_I4, propVal);
}
CString CAstComboTableControl::GetComboCaption()
{
CString result;
GetProperty(0x3, VT_BSTR, (void*)&result);
return result;
}
void CAstComboTableControl::SetComboCaption(LPCTSTR propVal)
{
SetProperty(0x3, VT_BSTR, propVal);
}
long CAstComboTableControl::GetLabelLength()
{
long result;
GetProperty(0x4, VT_I4, (void*)&result);
return result;
}
void CAstComboTableControl::SetLabelLength(long propVal)
{
SetProperty(0x4, VT_I4, propVal);
}
long CAstComboTableControl::GetLabelKey()
{
long result;
GetProperty(0x5, VT_I4, (void*)&result);
return result;
}
void CAstComboTableControl::SetLabelKey(long propVal)
{
SetProperty(0x5, VT_I4, propVal);
}
BOOL CAstComboTableControl::GetSort()
{
BOOL result;
GetProperty(0x6, VT_BOOL, (void*)&result);
return result;
}
void CAstComboTableControl::SetSort(BOOL propVal)
{
SetProperty(0x6, VT_BOOL, propVal);
}
BOOL CAstComboTableControl::GetEnabled()
{
BOOL result;
GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
return result;
}
void CAstComboTableControl::SetEnabled(BOOL propVal)
{
SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}
long CAstComboTableControl::GetLongKey()
{
long result;
GetProperty(0x7, VT_I4, (void*)&result);
return result;
}
void CAstComboTableControl::SetLongKey(long propVal)
{
SetProperty(0x7, VT_I4, propVal);
}
double CAstComboTableControl::GetDoubleKey()
{
double result;
GetProperty(0x8, VT_R8, (void*)&result);
return result;
}
void CAstComboTableControl::SetDoubleKey(double propVal)
{
SetProperty(0x8, VT_R8, propVal);
}
CString CAstComboTableControl::GetStringKey()
{
CString result;
GetProperty(0x9, VT_BSTR, (void*)&result);
return result;
}
void CAstComboTableControl::SetStringKey(LPCTSTR propVal)
{
SetProperty(0x9, VT_BSTR, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CAstComboTableControl operations
@@ -0,0 +1,70 @@
#if !defined(AFX_ASTCOMBOTABLECONTROL_H__F0089DE6_AC5E_4C13_A7BD_EBCAF601FDB0__INCLUDED_)
#define AFX_ASTCOMBOTABLECONTROL_H__F0089DE6_AC5E_4C13_A7BD_EBCAF601FDB0__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.
/////////////////////////////////////////////////////////////////////////////
// CAstComboTableControl wrapper class
class CAstComboTableControl : public CWnd
{
protected:
DECLARE_DYNCREATE(CAstComboTableControl)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0xfeaa9dcf, 0x65c5, 0x4650, { 0xb5, 0xcb, 0xb1, 0xa9, 0x14, 0xb6, 0x19, 0xfe } };
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:
CString GetTableName();
void SetTableName(LPCTSTR);
void SetDSNTableName(CString);
long GetComboIndex();
void SetComboIndex(long);
CString GetComboCaption();
void SetComboCaption(LPCTSTR);
long GetLabelLength();
void SetLabelLength(long);
long GetLabelKey();
void SetLabelKey(long);
BOOL GetSort();
void SetSort(BOOL);
BOOL GetEnabled();
void SetEnabled(BOOL);
long GetLongKey();
void SetLongKey(long);
double GetDoubleKey();
void SetDoubleKey(double);
CString GetStringKey();
void SetStringKey(LPCTSTR);
// Operations
public:
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ASTCOMBOTABLECONTROL_H__F0089DE6_AC5E_4C13_A7BD_EBCAF601FDB0__INCLUDED_)
@@ -0,0 +1,203 @@
// 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 "pch.h"
#include "astgratingcontrol.h"
/////////////////////////////////////////////////////////////////////////////
// CAstGratingControl
IMPLEMENT_DYNCREATE(CAstGratingControl, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CAstGratingControl properties
CString CAstGratingControl::GetCurrentSize()
{
CString result;
GetProperty(0x6, VT_BSTR, (void*)&result);
return result;
}
void CAstGratingControl::SetCurrentSize(LPCTSTR propVal)
{
SetProperty(0x6, VT_BSTR, propVal);
}
CString CAstGratingControl::GetCurrentClass()
{
CString result;
GetProperty(0x7, VT_BSTR, (void*)&result);
return result;
}
void CAstGratingControl::SetCurrentClass(LPCTSTR propVal)
{
SetProperty(0x7, VT_BSTR, propVal);
}
long CAstGratingControl::GetGratingType()
{
long result;
GetProperty(0x8, VT_I4, (void*)&result);
return result;
}
void CAstGratingControl::SetGratingType(long propVal)
{
SetProperty(0x8, VT_I4, propVal);
}
long CAstGratingControl::GetShowGratingTypeCombo()
{
long result;
GetProperty(0x9, VT_I4, (void*)&result);
return result;
}
void CAstGratingControl::SetShowGratingTypeCombo(long propVal)
{
SetProperty(0x9, VT_I4, propVal);
}
long CAstGratingControl::GetLabelLengthAll()
{
long result;
GetProperty(0xa, VT_I4, (void*)&result);
return result;
}
void CAstGratingControl::SetLabelLengthAll(long propVal)
{
SetProperty(0xa, VT_I4, propVal);
}
long CAstGratingControl::GetSummaryRepresentation()
{
long result;
GetProperty(0xb, VT_I4, (void*)&result);
return result;
}
void CAstGratingControl::SetSummaryRepresentation(long propVal)
{
SetProperty(0xb, VT_I4, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CAstGratingControl operations
long CAstGratingControl::GetLabelDBKey(long ctrl)
{
long result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x2, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
ctrl);
return result;
}
void CAstGratingControl::SetLabelDBKey(long ctrl, long nNewValue)
{
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
ctrl, nNewValue);
}
long CAstGratingControl::GetLabelLength(long ctrl)
{
long result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x4, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
ctrl);
return result;
}
void CAstGratingControl::SetLabelLength(long ctrl, long nNewValue)
{
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
ctrl, nNewValue);
}
BOOL CAstGratingControl::GetEnabled()
{
BOOL result;
GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
return result;
}
void CAstGratingControl::SetEnabled(BOOL propVal)
{
SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}
BOOL CAstGratingControl::GetAppearance()
{
BOOL result;
GetProperty(0xc, VT_BOOL, (void*)&result);
return result;
}
void CAstGratingControl::SetAppearance(BOOL propVal)
{
SetProperty(0xc, VT_BOOL, propVal);
}
long CAstGratingControl::GetDropHeight()
{
long result;
GetProperty(0xd, VT_I4, (void*)&result);
return result;
}
void CAstGratingControl::SetDropHeight(long propVal)
{
SetProperty(0xd, VT_I4, propVal);
}
long CAstGratingControl::GetDropWidth()
{
long result;
GetProperty(0xe, VT_I4, (void*)&result);
return result;
}
void CAstGratingControl::SetDropWidth(long propVal)
{
SetProperty(0xe, VT_I4, propVal);
}
BOOL CAstGratingControl::GetSummaryDroppedDown()
{
BOOL result;
GetProperty(0xf, VT_BOOL, (void*)&result);
return result;
}
void CAstGratingControl::SetSummaryDroppedDown(BOOL propVal)
{
SetProperty(0xf, VT_BOOL, propVal);
}
CString CAstGratingControl::GetGridCellDisplayName()
{
CString result;
GetProperty(0x10, VT_BSTR, (void*)&result);
return result;
}
void CAstGratingControl::SetGridCellDisplayName(LPCTSTR propVal)
{
SetProperty(0x10, VT_BSTR, propVal);
}
@@ -0,0 +1,77 @@
#if !defined(AFX_ASTGRATINGCONTROL_H__3171B533_EE2B_4609_A8DD_E9ADD3AFAE37__INCLUDED_)
#define AFX_ASTGRATINGCONTROL_H__3171B533_EE2B_4609_A8DD_E9ADD3AFAE37__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.
/////////////////////////////////////////////////////////////////////////////
// CAstGratingControl wrapper class
class CAstGratingControl : public CWnd
{
protected:
DECLARE_DYNCREATE(CAstGratingControl)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0xccddd738, 0x9cda, 0x4677, { 0x88, 0x85, 0x5, 0x7f, 0x2, 0x56, 0xf6, 0x1c } };
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:
CString GetCurrentSize();
void SetCurrentSize(LPCTSTR);
CString GetCurrentClass();
void SetCurrentClass(LPCTSTR);
long GetGratingType();
void SetGratingType(long);
long GetShowGratingTypeCombo();
void SetShowGratingTypeCombo(long);
long GetLabelLengthAll();
void SetLabelLengthAll(long);
BOOL GetEnabled();
void SetEnabled(BOOL);
long GetSummaryRepresentation();
void SetSummaryRepresentation(long);
BOOL GetAppearance();
void SetAppearance(BOOL);
long GetDropHeight();
void SetDropHeight(long);
long GetDropWidth();
void SetDropWidth(long);
BOOL GetSummaryDroppedDown();
void SetSummaryDroppedDown(BOOL);
CString GetGridCellDisplayName();
void SetGridCellDisplayName(LPCTSTR);
// property 'Enabled' not emitted because of invalid type
// Operations
public:
long GetLabelDBKey(long ctrl);
void SetLabelDBKey(long ctrl, long nNewValue);
long GetLabelLength(long ctrl);
void SetLabelLength(long ctrl, long nNewValue);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ASTGRATINGCONTROL_H__3171B533_EE2B_4609_A8DD_E9ADD3AFAE37__INCLUDED_)
@@ -0,0 +1,19 @@
// 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 "pch.h"
#include "astmodelrolecontrol.h"
/////////////////////////////////////////////////////////////////////////////
// CAstmodelrolecontrol
IMPLEMENT_DYNCREATE(CAstModelRoleControl, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CAstmodelrolecontrol properties
/////////////////////////////////////////////////////////////////////////////
// CAstmodelrolecontrol operations
@@ -0,0 +1,153 @@
#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.
/////////////////////////////////////////////////////////////////////////////
// CAstmodelrolecontrol wrapper class
class CAstModelRoleControl : public CWnd
{
protected:
DECLARE_DYNCREATE(CAstModelRoleControl)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0xEECAC4EE, 0xAA4C, 0x471C, { 0xAD, 0xA, 0xC1, 0x55, 0x7E, 0xB8, 0x28, 0xDC } };
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:
enum
{
kEditBox = 0,
kListBox = 1,
kComboBox = 2,
kCheckBox = 3,
kProfileEdit = 4,
kButton = 5
}eColumnType;
enum
{
kUnits = 0,
kDouble = 1,
kInteger = 2,
kString = 3
}eColumnDataType;
enum
{
kUnitDistance = 0,
kUnitAngle = 1,
kUnitWeight = 2,
kUnitDistanceGUI = 3,
kUnitArea = 4,
kUnitVolume = 5,
kUnitForce = 6,
kUnitMoment = 7
}eColumnUnitType;
enum
{
kBeam = 1,
kPlate = 2
}eGroupingRole;
enum
{
kGratingStandard = 0,
kGratingVariable = 1
}eGratingType;
enum
{
kType = 0,
kClass = 1,
kSize = 2
}eGratingControls;
enum
{
kNull = 0,
kAnglePage = 1,
kAreaPage = 2,
kWeightPage = 4,
kLengthPage = 8,
kWeightPerDistancePage = 16,
kAllPages = 255
}eFirstPage;
// Operations
public:
// _DAstModelRoleControl
// Functions
//
void SelectItemByKey(LPCTSTR Key)
{
static BYTE parms[] = VTS_BSTR ;
InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms, Key);
}
CString getSelectedItemKey()
{
CString result;
InvokeHelper(0x5, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
return result;
}
void SetObjectType(long objectType)
{
static BYTE parms[] = VTS_I4 ;
InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, parms, objectType);
}
// Properties
//
long GetLabelDbKey()
{
long result;
GetProperty(0x2, VT_I4, (void*)&result);
return result;
}
void SetLabelDbKey(long propVal)
{
SetProperty(0x2, VT_I4, propVal);
}
long GetLabelLength()
{
long result;
GetProperty(0x3, VT_I4, (void*)&result);
return result;
}
void SetLabelLength(long propVal)
{
SetProperty(0x3, VT_I4, propVal);
}
BOOL GetEnabled()
{
BOOL result;
GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
return result;
}
void SetEnabled(BOOL propVal)
{
SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}
};
@@ -0,0 +1,578 @@
// 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 "pch.h"
#include "astocxgrid.h"
#include "unitsmanager.h"
// Dispatch interfaces referenced by this interface
/////////////////////////////////////////////////////////////////////////////
// CAstOCXGrid
IMPLEMENT_DYNCREATE(CAstOCXGrid, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CAstOCXGrid properties
long CAstOCXGrid::GetColumnCount()
{
long result;
GetProperty(0x1, VT_I4, (void*)&result);
return result;
}
void CAstOCXGrid::SetColumnCount(long propVal)
{
SetProperty(0x1, VT_I4, propVal);
}
long CAstOCXGrid::GetRowCount()
{
long result;
GetProperty(0x2, VT_I4, (void*)&result);
return result;
}
void CAstOCXGrid::SetRowCount(long propVal)
{
SetProperty(0x2, VT_I4, propVal);
}
long CAstOCXGrid::GetFixedRowCount()
{
long result;
GetProperty(0x3, VT_I4, (void*)&result);
return result;
}
void CAstOCXGrid::SetFixedRowCount(long propVal)
{
SetProperty(0x3, VT_I4, propVal);
}
long CAstOCXGrid::GetFixedColumnCount()
{
long result;
GetProperty(0x4, VT_I4, (void*)&result);
return result;
}
void CAstOCXGrid::SetFixedColumnCount(long propVal)
{
SetProperty(0x4, VT_I4, propVal);
}
CUnitsManager CAstOCXGrid::GetUnits()
{
LPDISPATCH pDispatch;
GetProperty(0x5, VT_DISPATCH, (void*)&pDispatch);
return CUnitsManager(pDispatch);
}
void CAstOCXGrid::SetUnits(LPDISPATCH propVal)
{
SetProperty(0x5, VT_DISPATCH, propVal);
}
BOOL CAstOCXGrid::GetHeaderSort()
{
BOOL result;
GetProperty(0x6, VT_BOOL, (void*)&result);
return result;
}
void CAstOCXGrid::SetHeaderSort(BOOL propVal)
{
SetProperty(0x6, VT_BOOL, propVal);
}
BOOL CAstOCXGrid::GetListMode()
{
BOOL result;
GetProperty(0x7, VT_BOOL, (void*)&result);
return result;
}
void CAstOCXGrid::SetListMode(BOOL propVal)
{
SetProperty(0x7, VT_BOOL, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CAstOCXGrid operations
long CAstOCXGrid::GetRowHeight(long nRow)
{
long result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
nRow);
return result;
}
void CAstOCXGrid::SetRowHeight(long nRow, long nNewValue)
{
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0x8, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nRow, nNewValue);
}
long CAstOCXGrid::GetColumnWidth(long nColumn)
{
long result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
nColumn);
return result;
}
void CAstOCXGrid::SetColumnWidth(long nColumn, long nNewValue)
{
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0x9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nColumn, nNewValue);
}
unsigned long CAstOCXGrid::GetCellBkColor(long nRow, long nCol)
{
unsigned long result;
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
nRow, nCol);
return result;
}
void CAstOCXGrid::SetCellBkColor(long nRow, long nCol, unsigned long newValue)
{
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_I4;
InvokeHelper(0xa, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nRow, nCol, newValue);
}
unsigned long CAstOCXGrid::GetCellFgColor(long nRow, long nCol)
{
unsigned long result;
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0xb, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
nRow, nCol);
return result;
}
void CAstOCXGrid::SetCellFgColor(long nRow, long nCol, unsigned long newValue)
{
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_I4;
InvokeHelper(0xb, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nRow, nCol, newValue);
}
long CAstOCXGrid::GetColumnType(long nCol)
{
long result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0xc, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
nCol);
return result;
}
void CAstOCXGrid::SetColumnType(long nCol, long nNewValue)
{
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0xc, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nCol, nNewValue);
}
long CAstOCXGrid::GetColumnDataType(long nCol)
{
long result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0xd, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
nCol);
return result;
}
void CAstOCXGrid::SetColumnDataType(long nCol, long nNewValue)
{
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0xd, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nCol, nNewValue);
}
long CAstOCXGrid::GetColumnUnits(long nCol)
{
long result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0xe, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
nCol);
return result;
}
void CAstOCXGrid::SetColumnUnits(long nCol, long nNewValue)
{
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0xe, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nCol, nNewValue);
}
double CAstOCXGrid::GetItemDoubleValue(long nRow, long nCol)
{
double result;
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0xf, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, parms,
nRow, nCol);
return result;
}
void CAstOCXGrid::SetItemDoubleValue(long nRow, long nCol, double newValue)
{
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_R8;
InvokeHelper(0xf, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nRow, nCol, newValue);
}
long CAstOCXGrid::GetItemIntegerValue(long nRow, long nCol)
{
long result;
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0x10, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
nRow, nCol);
return result;
}
void CAstOCXGrid::SetItemIntegerValue(long nRow, long nCol, long nNewValue)
{
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_I4;
InvokeHelper(0x10, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nRow, nCol, nNewValue);
}
CString CAstOCXGrid::GetItemTextValue(long nRow, long nCol)
{
CString result;
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0x11, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
nRow, nCol);
return result;
}
void CAstOCXGrid::SetItemTextValue(long nRow, long nCol, LPCTSTR lpszNewValue)
{
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_BSTR;
InvokeHelper(0x11, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nRow, nCol, lpszNewValue);
}
long CAstOCXGrid::GetFocusCellRow()
{
long result;
InvokeHelper(0x12, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
return result;
}
long CAstOCXGrid::GetFocusCellColumn()
{
long result;
InvokeHelper(0x13, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
return result;
}
void CAstOCXGrid::EnableCell(long nRow, long nCol, short bEnable)
{
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_I2;
InvokeHelper(0x14, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
nRow, nCol, bEnable);
}
long CAstOCXGrid::InsertColumn(BSTR* strHeading, long nFormat, long nCol, long nType, long dataType/* = 0*/, long unitType/* = 0*/)
{
long result;
static BYTE parms[] =
VTS_PBSTR VTS_I4 VTS_I4 VTS_I4 VTS_I4 VTS_I4;
InvokeHelper(0x15, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
strHeading, nFormat, nCol, nType, dataType, unitType);
return result;
}
long CAstOCXGrid::InsertRow(BSTR* strHeading, long nRow)
{
long result;
static BYTE parms[] =
VTS_PBSTR VTS_I4;
InvokeHelper(0x16, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
strHeading, nRow);
return result;
}
BOOL CAstOCXGrid::DeleteColumn(long nCol)
{
BOOL result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x17, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
nCol);
return result;
}
BOOL CAstOCXGrid::DeleteRow(long nRow)
{
BOOL result;
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x18, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
nRow);
return result;
}
BOOL CAstOCXGrid::DeleteAllItems()
{
BOOL result;
InvokeHelper(0x19, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
void CAstOCXGrid::AddStringToControl(BSTR* newValue)
{
static BYTE parms[] =
VTS_PBSTR;
InvokeHelper(0x1a, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
newValue);
}
BOOL CAstOCXGrid::SortItems(long nCol, short bAscending)
{
BOOL result;
static BYTE parms[] =
VTS_I4 VTS_I2;
InvokeHelper(0x1b, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
nCol, bAscending);
return result;
}
void CAstOCXGrid::SetChecked(long nRow, long nCol, short nChecked)
{
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_I2;
InvokeHelper(0x1c, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
nRow, nCol, nChecked);
}
void CAstOCXGrid::AutoSizeRow(long nRow)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x1d, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
nRow);
}
void CAstOCXGrid::AutoSizeColumn(long nCol)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x1e, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
nCol);
}
void CAstOCXGrid::AutoSizeRows()
{
InvokeHelper(0x1f, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CAstOCXGrid::AutoSizeColumns()
{
InvokeHelper(0x20, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CAstOCXGrid::AutoSize()
{
InvokeHelper(0x21, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CAstOCXGrid::ExpandColumnsToFit()
{
InvokeHelper(0x22, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CAstOCXGrid::ExpandRowsToFit()
{
InvokeHelper(0x23, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CAstOCXGrid::ExpandToFit()
{
InvokeHelper(0x24, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CAstOCXGrid::AboutBox()
{
InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CAstOCXGrid::SetEditable(BOOL bEditable)
{
static BYTE params[] = VTS_BOOL;
InvokeHelper(0x25, DISPATCH_METHOD, VT_EMPTY, NULL, params, bEditable );
}
void CAstOCXGrid::RedrawCell(long nRow, long nCol)
{
static BYTE params[] = VTS_I4 VTS_I4;
InvokeHelper(0x26, DISPATCH_METHOD, VT_EMPTY, NULL, params, nRow, nCol);
}
unsigned long CAstOCXGrid::GetGridBkColor()
{
unsigned long result;
InvokeHelper(0x27, DISPATCH_PROPERTYGET, VT_UI4, (void*)&result, NULL);
return result;
}
void CAstOCXGrid::SetGridBkColor(unsigned long newValue)
{
static BYTE parms[] = VTS_UI4 ;
InvokeHelper(0x27, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
}
void CAstOCXGrid::AddTableToComboCol(long nCol, LPCTSTR lpszNewValue)
{
static BYTE parms[] =
VTS_I4 VTS_BSTR;
InvokeHelper(0x28, DISPATCH_METHOD, VT_EMPTY, NULL, parms, nCol, lpszNewValue);
}
BOOL CAstOCXGrid::GetSortCombo()
{
BOOL result;
GetProperty(0x29, VT_BOOL, (void*)&result);
return result;
}
void CAstOCXGrid::SetSortCombo(BOOL propVal)
{
SetProperty(0x29, VT_BOOL, propVal);
}
void CAstOCXGrid::SetLongKey(long nRow, long nCol, long nNewValue)
{
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_I4;
InvokeHelper(0x2A, DISPATCH_METHOD, VT_EMPTY, NULL, parms, nRow, nCol, nNewValue);
}
long CAstOCXGrid::GetLongKey(long nRow, long nCol)
{
BOOL result;
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0x2B, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
nRow, nCol);
return result;
}
void CAstOCXGrid::SetStringKey(long nRow, long nCol, LPCTSTR lpszNewValue)
{
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_BSTR;
InvokeHelper(0x2C, DISPATCH_METHOD, VT_EMPTY, NULL, parms, nRow, nCol, lpszNewValue);
}
BSTR CAstOCXGrid::GetStringKey(long nRow, long nCol)
{
BSTR result;
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0x2D, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
nRow, nCol);
return result;
}
void CAstOCXGrid::SetProfileName(long nRow, long nCol, LPCTSTR lpszNewValue)
{
static BYTE parms[] =
VTS_I4 VTS_I4 VTS_BSTR;
InvokeHelper(0x2E, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, nRow, nCol, lpszNewValue);
}
CString CAstOCXGrid::GetProfileName(long nRow, long nCol)
{
CString result;
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0x2E, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
nRow, nCol);
return result;
}
void CAstOCXGrid::SetCellReadOnly( long nRow, long nCol, short bReadOnly )
{
static BYTE params[] =
VTS_I4 VTS_I4 VTS_I2;
InvokeHelper(0x2F, DISPATCH_METHOD, VT_EMPTY, NULL, params,
nRow, nCol, bReadOnly);
}
long CAstOCXGrid::GetDataType(long nRow, long nCol)
{
long result;
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0x30, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
nRow, nCol);
return result;
}
void CAstOCXGrid::SetDataType(long nRow, long nCol, long nNewValue)
{
static BYTE parms[] =
VTS_I2 VTS_I4 VTS_I4;
InvokeHelper(0x30, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nRow, nCol, nNewValue);
}
long CAstOCXGrid::GetUnits(long nRow, long nCol)
{
long result;
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0x31, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
nRow, nCol);
return result;
}
void CAstOCXGrid::SetUnits(long nRow, long nCol, long nNewValue)
{
static BYTE parms[] =
VTS_I2 VTS_I4 VTS_I4;
InvokeHelper(0x31, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nRow, nCol, nNewValue);
}
void CAstOCXGrid::RedrawAllCells()
{
InvokeHelper(0x32, DISPATCH_METHOD, VT_EMPTY, NULL, VTS_NONE);
}
void CAstOCXGrid::AppendProfileAcceptedClassGroup( LPCTSTR lpszNewValue )
{
static BYTE parms[] = VTS_BSTR;
InvokeHelper(0x33, DISPATCH_METHOD, VT_EMPTY, NULL, parms, lpszNewValue);
}
@@ -0,0 +1,160 @@
#if !defined(AFX_ASTOCXGRID_H__A5C43C32_147D_4787_BA3E_AA692503E10F__INCLUDED_)
#define AFX_ASTOCXGRID_H__A5C43C32_147D_4787_BA3E_AA692503E10F__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 CUnitsManager;
/////////////////////////////////////////////////////////////////////////////
// CAstOCXGrid wrapper class
typedef enum ColumnType
{
kEditBox = 0,
kListBox = 1,
kComboBox = 2,
kCheckBox = 3,
kProfileEdit = 4,
kButton = 5,
kWeldEdit = 6,
kCrumbBox = 7
} eColumnType;
typedef enum CellDataType
{
kUnits = 0,
kDouble = 1,
kInteger = 2,
kString = 3
} eColumnDataType;
typedef enum CellUnitType
{
kUnitDistance = 0,
kUnitAngle = 1,
kUnitWeight = 2,
kUnitDistanceGUI = 3,
kUnitArea = 4,
kUnitVolume = 5,
kUnitForce = 6,
kUnitMoment = 7
} eColumnUnitType;
class CAstOCXGrid : public CWnd
{
protected:
DECLARE_DYNCREATE(CAstOCXGrid)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x2633a54, 0x53da, 0x4506, { 0xa8, 0xc5, 0xc5, 0x10, 0xc1, 0x81, 0xf2, 0x3c } };
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:
long GetColumnCount();
void SetColumnCount(long);
long GetRowCount();
void SetRowCount(long);
long GetFixedRowCount();
void SetFixedRowCount(long);
long GetFixedColumnCount();
void SetFixedColumnCount(long);
CUnitsManager GetUnits();
void SetUnits(LPDISPATCH);
BOOL GetHeaderSort();
void SetHeaderSort(BOOL);
BOOL GetListMode();
void SetListMode(BOOL);
// Operations
public:
long GetRowHeight(long nRow);
void SetRowHeight(long nRow, long nNewValue);
long GetColumnWidth(long nColumn);
void SetColumnWidth(long nColumn, long nNewValue);
unsigned long GetCellBkColor(long nRow, long nCol);
void SetCellBkColor(long nRow, long nCol, unsigned long newValue);
unsigned long GetCellFgColor(long nRow, long nCol);
void SetCellFgColor(long nRow, long nCol, unsigned long newValue);
unsigned long GetGridBkColor();
void SetGridBkColor(unsigned long newValue);
long GetColumnType(long nCol);
void SetColumnType(long nCol, long nNewValue);
long GetColumnDataType(long nCol);
void SetColumnDataType(long nCol, long nNewValue);
long GetColumnUnits(long nCol);
void SetColumnUnits(long nCol, long nNewValue);
double GetItemDoubleValue(long nRow, long nCol);
void SetItemDoubleValue(long nRow, long nCol, double newValue);
long GetItemIntegerValue(long nRow, long nCol);
void SetItemIntegerValue(long nRow, long nCol, long nNewValue);
CString GetItemTextValue(long nRow, long nCol);
void SetItemTextValue(long nRow, long nCol, LPCTSTR lpszNewValue);
long GetFocusCellRow();
long GetFocusCellColumn();
void EnableCell(long nRow, long nCol, short bEnable);
long InsertColumn(BSTR* strHeading, long nFormat, long nCol, long nType, long dataType = kUnits, long unitType = kUnitDistance);
long InsertRow(BSTR* strHeading, long nRow);
BOOL DeleteColumn(long nCol);
BOOL DeleteRow(long nRow);
BOOL DeleteAllItems();
void AddStringToControl(BSTR* newValue);
BOOL SortItems(long nCol, short bAscending);
void SetChecked(long nRow, long nCol, short nChecked);
void AutoSizeRow(long nRow);
void AutoSizeColumn(long nCol);
void AutoSizeRows();
void AutoSizeColumns();
void AutoSize();
void ExpandColumnsToFit();
void ExpandRowsToFit();
void ExpandToFit();
void AboutBox();
void SetEditable(BOOL bEditable);
void RedrawCell(long nRow, long nCol);
void AddTableToComboCol(long nColumn, LPCTSTR tableName);
BOOL GetSortCombo();
void SetSortCombo(BOOL newStyle);
void SetLongKey(long nRow, long nCol, long nNewValue);
long GetLongKey(long nRow, long nCol);
void SetStringKey(long nRow, long nCol, LPCTSTR lpszNewValue);
BSTR GetStringKey(long nRow, long nCol);
void SetProfileName(long nRow, long nCol, LPCTSTR lpszNewValue);
CString GetProfileName(long nRow, long nCol);
void FillWeldCombo(long nColumn);
void SetCellReadOnly(long nRow, long nCol, short bReadOnly);
long GetDataType(long nRow, long nCol);
void SetDataType(long nRow, long nCol, long nNewValue);
long GetUnits(long nRow, long nCol);
void SetUnits(long nRow, long nCol, long nNewValue);
void RedrawAllCells();
void AppendProfileAcceptedClassGroup(LPCTSTR lpszNewValue);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ASTOCXGRID_H__A5C43C32_147D_4787_BA3E_AA692503E10F__INCLUDED_)
@@ -0,0 +1,273 @@
// 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 "pch.h"
#include "astprofilecontrol.h"
/////////////////////////////////////////////////////////////////////////////
// CAstProfileControl
IMPLEMENT_DYNCREATE(CAstProfileControl, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CAstProfileControl properties
BOOL CAstProfileControl::GetShowHideAllSections()
{
BOOL result;
GetProperty(0x1, VT_BOOL, (void*)&result);
return result;
}
void CAstProfileControl::SetShowHideAllSections(BOOL propVal)
{
SetProperty(0x1, VT_BOOL, propVal);
}
CString CAstProfileControl::GetCurrentProfileName()
{
CString result;
GetProperty(0x2, VT_BSTR, (void*)&result);
return result;
}
void CAstProfileControl::SetCurrentProfileName(LPCTSTR propVal)
{
SetProperty(0x2, VT_BSTR, propVal);
}
CString CAstProfileControl::GetCurrentClass()
{
CString result;
GetProperty(0x3, VT_BSTR, (void*)&result);
return result;
}
void CAstProfileControl::SetCurrentClass(LPCTSTR propVal)
{
SetProperty(0x3, VT_BSTR, propVal);
}
CString CAstProfileControl::GetCurrentSection()
{
CString result;
GetProperty(0x4, VT_BSTR, (void*)&result);
return result;
}
void CAstProfileControl::SetCurrentSection(LPCTSTR propVal)
{
SetProperty(0x4, VT_BSTR, propVal);
}
long CAstProfileControl::GetCaptionClass()
{
long result;
GetProperty(0x5, VT_I4, (void*)&result);
return result;
}
void CAstProfileControl::SetCaptionClass(long propVal)
{
SetProperty(0x5, VT_I4, propVal);
}
long CAstProfileControl::GetCaptionTyp()
{
long result;
GetProperty(0x6, VT_I4, (void*)&result);
return result;
}
void CAstProfileControl::SetCaptionTyp(long propVal)
{
SetProperty(0x6, VT_I4, propVal);
}
long CAstProfileControl::GetCaptionShowHideAllSections()
{
long result;
GetProperty(0x7, VT_I4, (void*)&result);
return result;
}
void CAstProfileControl::SetCaptionShowHideAllSections(long propVal)
{
SetProperty(0x7, VT_I4, propVal);
}
BOOL CAstProfileControl::GetUseFilterClass()
{
BOOL result;
GetProperty(0x8, VT_BOOL, (void*)&result);
return result;
}
void CAstProfileControl::SetUseFilterClass(BOOL propVal)
{
SetProperty(0x8, VT_BOOL, propVal);
}
BOOL CAstProfileControl::GetCheckBoxOnLeft()
{
BOOL result;
GetProperty(0x9, VT_BOOL, (void*)&result);
return result;
}
void CAstProfileControl::SetCheckBoxOnLeft(BOOL propVal)
{
SetProperty(0x9, VT_BOOL, propVal);
}
long CAstProfileControl::GetLabelLength()
{
long result;
GetProperty(0xa, VT_I4, (void*)&result);
return result;
}
void CAstProfileControl::SetLabelLength(long propVal)
{
SetProperty(0xa, VT_I4, propVal);
}
CString CAstProfileControl::GetCurrentCrossSection()
{
CString result;
GetProperty(0xb, VT_BSTR, (void*)&result);
return result;
}
void CAstProfileControl::SetCurrentCrossSection(LPCTSTR propVal)
{
SetProperty(0xb, VT_BSTR, propVal);
}
BOOL CAstProfileControl::GetSummaryRepresentation()
{
BOOL result;
GetProperty(0xc, VT_BOOL, (void*)&result);
return result;
}
void CAstProfileControl::SetSummaryRepresentation(BOOL propVal)
{
SetProperty(0xc, VT_BOOL, propVal);
}
BOOL CAstProfileControl::GetAppearance()
{
BOOL result;
GetProperty(0xd, VT_BOOL, (void*)&result);
return result;
}
void CAstProfileControl::SetAppearance(BOOL propVal)
{
SetProperty(0xd, VT_BOOL, propVal);
}
long CAstProfileControl::GetDropHeight()
{
long result;
GetProperty(0xe, VT_I4, (void*)&result);
return result;
}
void CAstProfileControl::SetDropHeight(long propVal)
{
SetProperty(0xe, VT_I4, propVal);
}
long CAstProfileControl::GetDropWidth()
{
long result;
GetProperty(0xf, VT_I4, (void*)&result);
return result;
}
void CAstProfileControl::SetDropWidth(long propVal)
{
SetProperty(0xf, VT_I4, propVal);
}
BOOL CAstProfileControl::GetSummaryDroppedDown()
{
BOOL result;
GetProperty(0x10, VT_BOOL, (void*)&result);
return result;
}
void CAstProfileControl::SetSummaryDroppedDown(BOOL propVal)
{
SetProperty(0x10, VT_BOOL, propVal);
}
BOOL CAstProfileControl::GetEnabled()
{
BOOL result;
GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
return result;
}
void CAstProfileControl::SetEnabled(BOOL propVal)
{
SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}
BOOL CAstProfileControl::GetShowPromptOnTop()
{
BOOL result;
GetProperty(0x17, VT_BOOL, (void*)&result);
return result;
}
void CAstProfileControl::SetShowPromptOnTop(BOOL propVal)
{
SetProperty(0x17, VT_BOOL, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CAstProfileControl operations
void CAstProfileControl::AppendAcceptedClass(LPCTSTR newAcceptedClass)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x11, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
newAcceptedClass);
}
void CAstProfileControl::RemoveAcceptedClass(LPCTSTR AcceptedClass)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x12, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
AcceptedClass);
}
void CAstProfileControl::AppendAcceptedClassGroup(LPCTSTR SubtypeName)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x13, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
SubtypeName);
}
void CAstProfileControl::RemoveAcceptedClassGroup(LPCTSTR SubtypeName)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x18, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
SubtypeName);
}
void CAstProfileControl::Reset()
{
InvokeHelper(0x19, DISPATCH_METHOD, VT_EMPTY, NULL, VTS_NONE);
}
@@ -0,0 +1,90 @@
#if !defined(AFX_ASTPROFILECONTROL_H__AB9EFEEC_B473_4CD6_BED1_C5923EA79B15__INCLUDED_)
#define AFX_ASTPROFILECONTROL_H__AB9EFEEC_B473_4CD6_BED1_C5923EA79B15__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.
/////////////////////////////////////////////////////////////////////////////
// CAstProfileControl wrapper class
class CAstProfileControl : public CWnd
{
protected:
DECLARE_DYNCREATE(CAstProfileControl)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x574d51ef, 0x85f9, 0x415c, { 0x81, 0xce, 0x5a, 0xf, 0xc4, 0x5b, 0x1f, 0x79 } };
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:
BOOL GetShowHideAllSections();
void SetShowHideAllSections(BOOL);
CString GetCurrentProfileName();
void SetCurrentProfileName(LPCTSTR);
CString GetCurrentClass();
void SetCurrentClass(LPCTSTR);
CString GetCurrentSection();
void SetCurrentSection(LPCTSTR);
long GetCaptionClass();
void SetCaptionClass(long);
long GetCaptionTyp();
void SetCaptionTyp(long);
long GetCaptionShowHideAllSections();
void SetCaptionShowHideAllSections(long);
BOOL GetUseFilterClass();
void SetUseFilterClass(BOOL);
BOOL GetCheckBoxOnLeft();
void SetCheckBoxOnLeft(BOOL);
BOOL GetShowPromptOnTop();
void SetShowPromptOnTop(BOOL);
long GetLabelLength();
void SetLabelLength(long);
CString GetCurrentCrossSection();
void SetCurrentCrossSection(LPCTSTR);
BOOL GetSummaryRepresentation();
void SetSummaryRepresentation(BOOL);
BOOL GetAppearance();
void SetAppearance(BOOL);
long GetDropHeight();
void SetDropHeight(long);
long GetDropWidth();
void SetDropWidth(long);
BOOL GetSummaryDroppedDown();
void SetSummaryDroppedDown(BOOL);
BOOL GetEnabled();
void SetEnabled(BOOL);
// Operations
public:
void AppendAcceptedClass(LPCTSTR newAcceptedClass);
void RemoveAcceptedClass(LPCTSTR AcceptedClass);
void AppendAcceptedClassGroup(LPCTSTR SubtypeName);
void RemoveAcceptedClassGroup(LPCTSTR SubtypeName);
void Reset();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ASTPROFILECONTROL_H__AB9EFEEC_B473_4CD6_BED1_C5923EA79B15__INCLUDED_)
@@ -0,0 +1,43 @@
// 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 "pch.h"
#include "aststaticprompt.h"
/////////////////////////////////////////////////////////////////////////////
// CAstStaticPrompt
IMPLEMENT_DYNCREATE(CAstStaticPrompt, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CAstStaticPrompt properties
long CAstStaticPrompt::GetKey()
{
long result;
GetProperty(0x1, VT_I4, (void*)&result);
return result;
}
void CAstStaticPrompt::SetKey(long propVal)
{
SetProperty(0x1, VT_I4, propVal);
}
BOOL CAstStaticPrompt::GetEnabled()
{
BOOL result;
GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
return result;
}
void CAstStaticPrompt::SetEnabled(BOOL propVal)
{
SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CAstStaticPrompt operations
@@ -0,0 +1,53 @@
#if !defined(AFX_ASTSTATICPROMPT_H__02DA9F43_CBBF_49F9_8E53_3B82F1251DA3__INCLUDED_)
#define AFX_ASTSTATICPROMPT_H__02DA9F43_CBBF_49F9_8E53_3B82F1251DA3__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.
/////////////////////////////////////////////////////////////////////////////
// CAstStaticPrompt wrapper class
class CAstStaticPrompt : public CWnd
{
protected:
DECLARE_DYNCREATE(CAstStaticPrompt)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x25d0c857, 0x2689, 0x481c, { 0xb4, 0x70, 0xa0, 0x62, 0xe5, 0x9, 0x9, 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:
long GetKey();
void SetKey(long);
BOOL GetEnabled();
void SetEnabled(BOOL);
// Operations
public:
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ASTSTATICPROMPT_H__02DA9F43_CBBF_49F9_8E53_3B82F1251DA3__INCLUDED_)
@@ -0,0 +1,19 @@
// 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 "pch.h"
#include "aststatictextcontrol.h"
/////////////////////////////////////////////////////////////////////////////
// CAstStaticTextControl
IMPLEMENT_DYNCREATE(CAstStaticTextControl, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CAstStaticTextControl properties
/////////////////////////////////////////////////////////////////////////////
// CAstStaticTextControl operations
@@ -0,0 +1,127 @@
#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.
/////////////////////////////////////////////////////////////////////////////
// CAstStaticTextControl wrapper class
class CAstStaticTextControl : public CWnd
{
protected:
DECLARE_DYNCREATE(CAstStaticTextControl)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x25D0C857, 0x2689, 0x481C, { 0xB4, 0x70, 0xA0, 0x62, 0xE5, 0x9, 0x9, 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:
enum
{
kEditBox = 0,
kListBox = 1,
kComboBox = 2,
kCheckBox = 3,
kProfileEdit = 4,
kButton = 5
}eColumnType;
enum
{
kUnits = 0,
kDouble = 1,
kInteger = 2,
kString = 3
}eColumnDataType;
enum
{
kUnitDistance = 0,
kUnitAngle = 1,
kUnitWeight = 2,
kUnitDistanceGUI = 3,
kUnitArea = 4,
kUnitVolume = 5,
kUnitForce = 6,
kUnitMoment = 7
}eColumnUnitType;
enum
{
kBeam = 1,
kPlate = 2
}eGroupingRole;
enum
{
kGratingStandard = 0,
kGratingVariable = 1
}eGratingType;
enum
{
kType = 0,
kClass = 1,
kSize = 2
}eGratingControls;
enum
{
kNull = 0,
kAnglePage = 1,
kAreaPage = 2,
kWeightPage = 4,
kLengthPage = 8,
kWeightPerDistancePage = 16,
kAllPages = 255
}eFirstPage;
// Operations
public:
// _DAstStaticPrompt
// Functions
//
// Properties
//
long GetKey()
{
long result;
GetProperty(0x1, VT_I4, (void*)&result);
return result;
}
void SetKey(long propVal)
{
SetProperty(0x1, VT_I4, propVal);
}
BOOL GetEnabled()
{
BOOL result;
GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
return result;
}
void SetEnabled(BOOL propVal)
{
SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}
};
@@ -0,0 +1,141 @@
// 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 "pch.h"
#include "astunitcontrol.h"
#include "font.h"
#include "unitsmanager.h"
// Dispatch interfaces referenced by this interface
/////////////////////////////////////////////////////////////////////////////
// CAstUnitControl
IMPLEMENT_DYNCREATE(CAstUnitControl, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CAstUnitControl properties
unsigned long CAstUnitControl::GetBackColor()
{
unsigned long result;
GetProperty(0x1, VT_I4, (void*)&result);
return result;
}
void CAstUnitControl::SetBackColor(unsigned long propVal)
{
SetProperty(0x1, VT_I4, propVal);
}
short CAstUnitControl::GetEditType()
{
short result;
GetProperty(0x2, VT_I2, (void*)&result);
return result;
}
void CAstUnitControl::SetEditType(short propVal)
{
SetProperty(0x2, VT_I2, propVal);
}
COleFont CAstUnitControl::GetFont()
{
LPDISPATCH pDispatch;
GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
return COleFont(pDispatch);
}
void CAstUnitControl::SetFont(LPDISPATCH propVal)
{
SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
}
double CAstUnitControl::GetDoubleValue()
{
double result;
GetProperty(0x3, VT_R8, (void*)&result);
return result;
}
void CAstUnitControl::SetDoubleValue(double propVal)
{
SetProperty(0x3, VT_R8, propVal);
}
CString CAstUnitControl::GetText()
{
CString result;
GetProperty(0x4, VT_BSTR, (void*)&result);
return result;
}
void CAstUnitControl::SetText(LPCTSTR propVal)
{
SetProperty(0x4, VT_BSTR, propVal);
}
CUnitsManager CAstUnitControl::GetUnits()
{
LPDISPATCH pDispatch;
GetProperty(0x5, VT_DISPATCH, (void*)&pDispatch);
return CUnitsManager(pDispatch);
}
void CAstUnitControl::SetUnits(LPDISPATCH propVal)
{
SetProperty(0x5, VT_DISPATCH, propVal);
}
long CAstUnitControl::GetLabelDbKey()
{
long result;
GetProperty(0x6, VT_I4, (void*)&result);
return result;
}
void CAstUnitControl::SetLabelDbKey(long propVal)
{
SetProperty(0x6, VT_I4, propVal);
}
long CAstUnitControl::GetLabelLength()
{
long result;
GetProperty(0x7, VT_I4, (void*)&result);
return result;
}
void CAstUnitControl::SetLabelLength(long propVal)
{
SetProperty(0x7, VT_I4, propVal);
}
BOOL CAstUnitControl::GetEnabled()
{
BOOL result;
GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
return result;
}
void CAstUnitControl::SetEnabled(BOOL propVal)
{
SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}
long CAstUnitControl::GetIntegerValue()
{
long result;
GetProperty(0x8, VT_I4, (void*)&result);
return result;
}
void CAstUnitControl::SetIntegerValue(long propVal)
{
SetProperty(0x8, VT_I4, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CAstUnitControl operations
@@ -0,0 +1,74 @@
#if !defined(AFX_ASTUNITCONTROL_H__75321BD4_00D6_4705_ABA1_52BD1CE5C48C__INCLUDED_)
#define AFX_ASTUNITCONTROL_H__75321BD4_00D6_4705_ABA1_52BD1CE5C48C__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;
class CUnitsManager;
/////////////////////////////////////////////////////////////////////////////
// CAstUnitControl wrapper class
class CAstUnitControl : public CWnd
{
protected:
DECLARE_DYNCREATE(CAstUnitControl)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0x3a345bcb, 0xe386, 0x45de, { 0xa4, 0x25, 0xf4, 0x51, 0xc6, 0x6e, 0x18, 0x47 } };
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:
unsigned long GetBackColor();
void SetBackColor(unsigned long);
short GetEditType();
void SetEditType(short);
COleFont GetFont();
void SetFont(LPDISPATCH);
double GetDoubleValue();
void SetDoubleValue(double);
CString GetText();
void SetText(LPCTSTR);
CUnitsManager GetUnits();
void SetUnits(LPDISPATCH);
long GetLabelDbKey();
void SetLabelDbKey(long);
long GetLabelLength();
void SetLabelLength(long);
BOOL GetEnabled();
void SetEnabled(BOOL);
long GetIntegerValue();
void SetIntegerValue(long);
// Operations
public:
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ASTUNITCONTROL_H__75321BD4_00D6_4705_ABA1_52BD1CE5C48C__INCLUDED_)
@@ -0,0 +1,19 @@
// 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 "pch.h"
#include "astweldcontrol.h"
/////////////////////////////////////////////////////////////////////////////
// CAstWeldControl
IMPLEMENT_DYNCREATE(CAstWeldControl, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CAstWeldControl properties
/////////////////////////////////////////////////////////////////////////////
// CAstWeldControl operations
@@ -0,0 +1,143 @@
#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.
/////////////////////////////////////////////////////////////////////////////
// CAstWeldControl wrapper class
class CAstWeldControl : public CWnd
{
protected:
DECLARE_DYNCREATE(CAstWeldControl)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0xC90B8331, 0x9DA7, 0x41DD, { 0x8D, 0x66, 0x1E, 0xA9, 0x45, 0xC3, 0x36, 0x21 } };
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:
enum
{
kEditBox = 0,
kListBox = 1,
kComboBox = 2,
kCheckBox = 3,
kProfileEdit = 4,
kButton = 5
}eColumnType;
enum
{
kUnits = 0,
kDouble = 1,
kInteger = 2,
kString = 3
}eColumnDataType;
enum
{
kUnitDistance = 0,
kUnitAngle = 1,
kUnitWeight = 2,
kUnitDistanceGUI = 3,
kUnitArea = 4,
kUnitVolume = 5,
kUnitForce = 6,
kUnitMoment = 7
}eColumnUnitType;
enum
{
kBeam = 1,
kPlate = 2
}eGroupingRole;
enum
{
kNull = 0,
kAnglePage = 1,
kAreaPage = 2,
kWeightPage = 4,
kLengthPage = 8,
kWeightPerDistancePage = 16,
kAllPages = 255
}eFirstPage;
// Operations
public:
// _DAstWeldControl
// Functions
//
void SelectItemByKey(long Key)
{
static BYTE parms[] = VTS_I4 ;
InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms, Key);
}
long getSelectedItemKey()
{
long result;
InvokeHelper(0x3, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
return result;
}
BOOL IsCombiWelding()
{
BOOL result;
InvokeHelper(0x4, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
// Properties
//
long GetLabelDbKey()
{
long result;
GetProperty(0x5, VT_I4, (void*)&result);
return result;
}
void SetLabelDbKey(long propVal)
{
SetProperty(0x5, VT_I4, propVal);
}
long GetLabelLength()
{
long result;
GetProperty(0x6, VT_I4, (void*)&result);
return result;
}
void SetLabelLength(long propVal)
{
SetProperty(0x6, VT_I4, propVal);
}
BOOL GetEnabled()
{
BOOL result;
GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
return result;
}
void SetEnabled(BOOL propVal)
{
SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}
};
@@ -0,0 +1,19 @@
// 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 "pch.h"
#include "boltstandards.h"
/////////////////////////////////////////////////////////////////////////////
// CBoltstandardsctrl1
IMPLEMENT_DYNCREATE(CBoltStandards, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CBoltstandardsctrl1 properties
/////////////////////////////////////////////////////////////////////////////
// CBoltstandardsctrl1 operations
@@ -0,0 +1,311 @@
#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.
/////////////////////////////////////////////////////////////////////////////
// CBoltstandardsctrl1 wrapper class
#include "unitsmanager.h"
class CBoltStandards : public CWnd
{
protected:
DECLARE_DYNCREATE(CBoltStandards)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0xC4B9CAC, 0xB571, 0x4906, { 0xB0, 0x6, 0x6, 0xFC, 0x98, 0x47, 0x37, 0x34 } };
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:
enum
{
kEditBox = 0,
kListBox = 1,
kComboBox = 2,
kCheckBox = 3,
kProfileEdit = 4,
kButton = 5
}ColumnType;
enum
{
kUnits = 0,
kDouble = 1,
kInteger = 2,
kString = 3
}ColumnDataType;
enum
{
kUnitDistance = 0,
kUnitAngle = 1,
kUnitWeight = 2,
kUnitDistanceGUI = 3,
kUnitArea = 4,
kUnitVolume = 5,
kUnitForce = 6,
kUnitMoment = 7
}ColumnUnitType;
enum
{
kBeam = 1,
kPlate = 2
}GroupingRole;
enum
{
kGratingStandard = 0,
kGratingVariable = 1
}GratingType;
enum
{
kType = 0,
kClass = 1,
kSize = 2
}GratingControls;
enum
{
kNull = 0,
kAnglePage = 1,
kAreaPage = 2,
kWeightPage = 4,
kLengthPage = 8,
kWeightPerDistancePage = 16,
kAllPages = 255
}FirstPage;
// Operations
public:
// _DBoltStandards
// Functions
//
// Properties
//
float GetLabelLength()
{
float result;
GetProperty(0x1, VT_R4, (void*)&result);
return result;
}
void SetLabelLength(float propVal)
{
SetProperty(0x1, VT_R4, propVal);
}
long GetLabelDiameter()
{
long result;
GetProperty(0x2, VT_I4, (void*)&result);
return result;
}
void SetLabelDiameter(long propVal)
{
SetProperty(0x2, VT_I4, propVal);
}
long GetLabelStandard()
{
long result;
GetProperty(0x3, VT_I4, (void*)&result);
return result;
}
void SetLabelStandard(long propVal)
{
SetProperty(0x3, VT_I4, propVal);
}
long GetLabelMaterial()
{
long result;
GetProperty(0x4, VT_I4, (void*)&result);
return result;
}
void SetLabelMaterial(long propVal)
{
SetProperty(0x4, VT_I4, propVal);
}
long GetLabelBoltSet()
{
long result;
GetProperty(0x5, VT_I4, (void*)&result);
return result;
}
void SetLabelBoltSet(long propVal)
{
SetProperty(0x5, VT_I4, propVal);
}
double GetBoltDiameter()
{
double result;
GetProperty(0x6, VT_R8, (void*)&result);
return result;
}
void SetBoltDiameter(double propVal)
{
SetProperty(0x6, VT_R8, propVal);
}
CString GetBoltStandard()
{
CString result;
GetProperty(0x7, VT_BSTR, (void*)&result);
return result;
}
void SetBoltStandard(CString propVal)
{
SetProperty(0x7, VT_BSTR, propVal);
}
CString GetBoltMaterial()
{
CString result;
GetProperty(0x8, VT_BSTR, (void*)&result);
return result;
}
void SetBoltMaterial(CString propVal)
{
SetProperty(0x8, VT_BSTR, propVal);
}
CString GetBoltSet()
{
CString result;
GetProperty(0x9, VT_BSTR, (void*)&result);
return result;
}
void SetBoltSet(CString propVal)
{
SetProperty(0x9, VT_BSTR, propVal);
}
short GetElementType()
{
short result;
GetProperty(0xa, VT_I2, (void*)&result);
return result;
}
void SetElementType(short propVal)
{
SetProperty(0xa, VT_I2, propVal);
}
CString GetBoltStandardDescription()
{
CString result;
GetProperty(0xb, VT_BSTR, (void*)&result);
return result;
}
void SetBoltStandardDescription(CString propVal)
{
SetProperty(0xb, VT_BSTR, propVal);
}
CString GetBoltMaterialDescription()
{
CString result;
GetProperty(0xc, VT_BSTR, (void*)&result);
return result;
}
void SetBoltMaterialDescription(CString propVal)
{
SetProperty(0xc, VT_BSTR, propVal);
}
CString GetBoltSetDescription()
{
CString result;
GetProperty(0xd, VT_BSTR, (void*)&result);
return result;
}
void SetBoltSetDescription(CString propVal)
{
SetProperty(0xd, VT_BSTR, propVal);
}
CString GetBoltDiameterDescription()
{
CString result;
GetProperty(0xe, VT_BSTR, (void*)&result);
return result;
}
void SetBoltDiameterDescription(CString propVal)
{
SetProperty(0xe, VT_BSTR, propVal);
}
double GetAnchorLength()
{
double result;
GetProperty(0xf, VT_R8, (void*)&result);
return result;
}
void SetAnchorLength(double propVal)
{
SetProperty(0xf, VT_R8, propVal);
}
long GetLabelAnchorLength()
{
long result;
GetProperty(0x10, VT_I4, (void*)&result);
return result;
}
void SetLabelAnchorLength(long propVal)
{
SetProperty(0x10, VT_I4, propVal);
}
CUnitsManager GetUnits()
{
LPDISPATCH pDispatch;
GetProperty(0x11, VT_DISPATCH, (void*)&pDispatch);
return CUnitsManager(pDispatch);
}
void SetUnits(LPDISPATCH propVal)
{
SetProperty(0x11, VT_DISPATCH, propVal);
}
int GetControlHeight()
{
int result;
GetProperty(0x12, VT_I4, (void*)&result);
return result;
}
void SetControlHeight(int propVal)
{
SetProperty(0x12, VT_I4, propVal);
}
BOOL GetEnabled()
{
BOOL result;
GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
return result;
}
void SetEnabled(BOOL propVal)
{
SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}
IFontDisp * GetFont()
{
IFontDisp * result;
GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&result);
return result;
}
void SetFont(IFontDisp * propVal)
{
SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
}
};
@@ -0,0 +1,111 @@
// 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 "pch.h"
#include "font.h"
/////////////////////////////////////////////////////////////////////////////
// COleFont properties
CString COleFont::GetName()
{
CString result;
GetProperty(0x0, VT_BSTR, (void*)&result);
return result;
}
void COleFont::SetName(LPCTSTR propVal)
{
SetProperty(0x0, VT_BSTR, propVal);
}
CY COleFont::GetSize()
{
CY result;
GetProperty(0x2, VT_CY, (void*)&result);
return result;
}
void COleFont::SetSize(const CY& propVal)
{
SetProperty(0x2, VT_CY, &propVal);
}
BOOL COleFont::GetBold()
{
BOOL result;
GetProperty(0x3, VT_BOOL, (void*)&result);
return result;
}
void COleFont::SetBold(BOOL propVal)
{
SetProperty(0x3, VT_BOOL, propVal);
}
BOOL COleFont::GetItalic()
{
BOOL result;
GetProperty(0x4, VT_BOOL, (void*)&result);
return result;
}
void COleFont::SetItalic(BOOL propVal)
{
SetProperty(0x4, VT_BOOL, propVal);
}
BOOL COleFont::GetUnderline()
{
BOOL result;
GetProperty(0x5, VT_BOOL, (void*)&result);
return result;
}
void COleFont::SetUnderline(BOOL propVal)
{
SetProperty(0x5, VT_BOOL, propVal);
}
BOOL COleFont::GetStrikethrough()
{
BOOL result;
GetProperty(0x6, VT_BOOL, (void*)&result);
return result;
}
void COleFont::SetStrikethrough(BOOL propVal)
{
SetProperty(0x6, VT_BOOL, propVal);
}
short COleFont::GetWeight()
{
short result;
GetProperty(0x7, VT_I2, (void*)&result);
return result;
}
void COleFont::SetWeight(short propVal)
{
SetProperty(0x7, VT_I2, propVal);
}
short COleFont::GetCharset()
{
short result;
GetProperty(0x8, VT_I2, (void*)&result);
return result;
}
void COleFont::SetCharset(short propVal)
{
SetProperty(0x8, VT_I2, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// COleFont operations
@@ -0,0 +1,47 @@
#if !defined(AFX_FONT_H__454B029E_2DFA_40AD_A69C_4666F95D7E40__INCLUDED_)
#define AFX_FONT_H__454B029E_2DFA_40AD_A69C_4666F95D7E40__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.
/////////////////////////////////////////////////////////////////////////////
// COleFont wrapper class
class COleFont : public COleDispatchDriver
{
public:
COleFont() {} // Calls COleDispatchDriver default constructor
COleFont(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
COleFont(const COleFont& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
// Attributes
public:
CString GetName();
void SetName(LPCTSTR);
CY GetSize();
void SetSize(const CY&);
BOOL GetBold();
void SetBold(BOOL);
BOOL GetItalic();
void SetItalic(BOOL);
BOOL GetUnderline();
void SetUnderline(BOOL);
BOOL GetStrikethrough();
void SetStrikethrough(BOOL);
short GetWeight();
void SetWeight(short);
short GetCharset();
void SetCharset(short);
// Operations
public:
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FONT_H__454B029E_2DFA_40AD_A69C_4666F95D7E40__INCLUDED_)
@@ -0,0 +1,5 @@
#pragma once
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files
#include <windows.h>
@@ -0,0 +1,5 @@
// pch.cpp: source file corresponding to the pre-compiled header
#include "pch.h"
// When you are using pre-compiled headers, this source file is necessary for compilation to succeed.
@@ -0,0 +1,38 @@
// pch.h: This is a precompiled header file.
// Files listed below are compiled only once, improving build performance for future builds.
// This also affects IntelliSense performance, including code completion and many code browsing features.
// However, files listed here are ALL re-compiled if any one of them is updated between builds.
// Do not add files here that you will be updating frequently as this negates the performance advantage.
#ifndef PCH_H
#define PCH_H
// add headers that you want to pre-compile here
#include <afxwin.h>
#include <afxdisp.h>
#include <afxdlgs.h>
#include <afxcmn.h>
#include <atlbase.h>
//You may derive a class from CComModule and use it if you want to override
//something, but do not change the name of _Module
extern CComModule _Module;
#include <atlcom.h>
#include <comdef.h>
#include <vector>
#include <math.h>
#include <string>
#import "AstorMain5.tlb" raw_interfaces_only, raw_native_types, no_namespace, named_guids
#import "DscOdbcCom.tlb" raw_interfaces_only, raw_native_types, no_namespace, named_guids
#include "resource.h"
#include "SampleClipAngleNative_h.h"
#include "ClipAngle.h"
#include "framework.h"
#endif //PCH_H
@@ -0,0 +1,20 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by SampleClipAngle.rc
//
#define IDD_CLIPANGLEDIALOG 103
#define IDR_SampleClipAngle 1000
#define IDC_ASTBITMAPCONTROL1 1001
#define IDC_BOLTSTANDARDSCTRL1 1002
#define IDC_ASTPROFILECONTROL1 1003
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 103
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1004
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
@@ -0,0 +1,235 @@
// 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 "pch.h"
#include "unitsmanager.h"
/////////////////////////////////////////////////////////////////////////////
// CUnitsManager properties
/////////////////////////////////////////////////////////////////////////////
// CUnitsManager operations
void CUnitsManager::SetUseRegionalSettings(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}
long CUnitsManager::GetUseRegionalSettings()
{
long result;
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
void CUnitsManager::getUnitOfDistance(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::setUnitOfDistance(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::getUnitOfWeight(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::setUnitOfWeight(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::getUnitOfAngle(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::setUnitOfAngle(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::doModal()
{
InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CUnitsManager::getUnitOfArea(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x9, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::setUnitOfArea(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0xa, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::getUnitOfVolume(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::setUnitOfVolume(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0xc, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::getUnitOfDistanceGUI(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0xd, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::setUnitOfDistanceGUI(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0xe, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::getUnitOfForce(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::setUnitOfForce(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x10, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::getUnitOfMoment(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x11, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::setUnitOfMoment(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x12, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::getUnitOfWeightPerDistance(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x13, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::setUnitOfWeightPerDistance(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x14, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::getUnitOfAreaPerDistance(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x15, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::setUnitOfAreaPerDistance(LPDISPATCH retval)
{
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x16, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
retval);
}
void CUnitsManager::doModalWithCaption(LPCTSTR caption)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x17, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
caption);
}
void CUnitsManager::doModalWithChooseFirstPage(long firstPageNo)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x18, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
firstPageNo);
}
void CUnitsManager::doModalUnitPage(long pageNo)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x19, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
pageNo);
}
void CUnitsManager::doModalUnitPages(long pagesSelection, long page)
{
static BYTE parms[] =
VTS_I4 VTS_I4;
InvokeHelper(0x1a, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
pagesSelection, page);
}
void CUnitsManager::doModalWithCaptionUnitPages(LPCTSTR caption, long pagesSelection, long page)
{
static BYTE parms[] =
VTS_BSTR VTS_I4 VTS_I4;
InvokeHelper(0x1b, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
caption, pagesSelection, page);
}
@@ -0,0 +1,59 @@
#if !defined(AFX_UNITSMANAGER_H__CEBB4162_730D_40CD_8126_AD9245ED4795__INCLUDED_)
#define AFX_UNITSMANAGER_H__CEBB4162_730D_40CD_8126_AD9245ED4795__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.
/////////////////////////////////////////////////////////////////////////////
// CUnitsManager wrapper class
class CUnitsManager : public COleDispatchDriver
{
public:
CUnitsManager() {} // Calls COleDispatchDriver default constructor
CUnitsManager(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
CUnitsManager(const CUnitsManager& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
// Attributes
public:
// Operations
public:
void SetUseRegionalSettings(long nNewValue);
long GetUseRegionalSettings();
void getUnitOfDistance(LPDISPATCH retval);
void setUnitOfDistance(LPDISPATCH retval);
void getUnitOfWeight(LPDISPATCH retval);
void setUnitOfWeight(LPDISPATCH retval);
void getUnitOfAngle(LPDISPATCH retval);
void setUnitOfAngle(LPDISPATCH retval);
void doModal();
void getUnitOfArea(LPDISPATCH retval);
void setUnitOfArea(LPDISPATCH retval);
void getUnitOfVolume(LPDISPATCH retval);
void setUnitOfVolume(LPDISPATCH retval);
void getUnitOfDistanceGUI(LPDISPATCH retval);
void setUnitOfDistanceGUI(LPDISPATCH retval);
void getUnitOfForce(LPDISPATCH retval);
void setUnitOfForce(LPDISPATCH retval);
void getUnitOfMoment(LPDISPATCH retval);
void setUnitOfMoment(LPDISPATCH retval);
void getUnitOfWeightPerDistance(LPDISPATCH retval);
void setUnitOfWeightPerDistance(LPDISPATCH retval);
void getUnitOfAreaPerDistance(LPDISPATCH retval);
void setUnitOfAreaPerDistance(LPDISPATCH retval);
void doModalWithCaption(LPCTSTR caption);
void doModalWithChooseFirstPage(long firstPageNo);
void doModalUnitPage(long pageNo);
void doModalUnitPages(long pagesSelection, long page);
void doModalWithCaptionUnitPages(LPCTSTR caption, long pagesSelection, long page);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_UNITSMANAGER_H__CEBB4162_730D_40CD_8126_AD9245ED4795__INCLUDED_)