• 大小: 9.37MB
    文件类型: .rar
    金币: 2
    下载: 0 次
    发布日期: 2023-10-07
  • 语言: 其他
  • 标签:

资源简介

用ObjectARX进行CAD二次开发,VC实现CAD可停靠面板

资源截图

代码片段和文件信息

// (C) Copyright 2000-2006 by Autodesk Inc. 
//
// Permission to use copy modify and distribute this software in
// object code form for any purpose and without fee is hereby granted 
// provided that the above copyright notice appears in all copies and 
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting 
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM “AS IS“ AND WITH ALL FAULTS. 
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK INC. 
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use duplication or disclosure by the U.S. Government is subject to 
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software) as applicable.
//
//

//-----------------------------------------------------------------------------
#include “StdAfx.h“

#if defined(_DEBUG) && !defined(AC_FULL_DEBUG)
#error _DEBUG should not be defined except in internal Adesk debug builds
#endif

#include “Palette.h“
#include “PaletteSet.h“



//Utility functions to add and get the child node from the parent xml-DOM node
extern BOOL GetChildNode(MSxml::IxmlDOMNode* pNode 
LPCTSTR pszNodeName 
MSxml::IxmlDOMNode** ppChild);

extern BOOL AddChildNode(MSxml::IxmlDOMNode* pNode LPCTSTR pszChildNodeName
 short nNodeType MSxml::IxmlDOMNode** ppChild);

// The file name of the persisted palette 
#define DATA_PALETTE_FILENAME _T(“TestDataPalette.xml“)

//-----------------------------------------------------------------------------
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

//-----------------------------------------------------------------------------
IMPLEMENT_DYNCREATE(CDataPalette CAdUiPalette)


//-----------------------------------------------------------------------------
BEGIN_MESSAGE_MAP(CDataPalette CAdUiPalette)
ON_MESSAGE(WM_CTLCOLORSTATIC OnCtlColorStatic)
ON_WM_CREATE()
ON_WM_DESTROY()
ON_CBN_SELCHANGE(ID_COMBO OnComboChange)
ON_EN_UPDATE(ID_STRING_EDIT OnStringChange)
ON_EN_UPDATE(ID_INT_EDIT OnIntChange)
ON_EN_UPDATE(ID_REAL_EDIT OnRealChange)
END_MESSAGE_MAP()

CDataPalette::CDataPalette()
{
// initialize integer and real arrays to zero
for(int i = 0; i < 2; i ++){
integer[i] = 0;
real[i] = 0;
}
}

CDataPalette::~CDataPalette()
{
//
}

// Load the data from xml.
BOOL CDataPalette::Load(IUnknown* pUnk) 
{
// Call base class first 
CAdUiPalette::Load(pUnk);

CComQIPtrl::IxmlDOMNode> pNode(pUnk);
MSxml::IxmlDOMNodePtr pChild pChild1;

BSTR text;
////////////// Item 1 ///////////////////////
GetChildNode(pNode _T(“Item1“) &pChild);
GetChildNode(pC

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      11146  2006-01-15 19:04  CustPalette\CPalette.cpp

     文件       4559  2006-01-12 22:11  CustPalette\CustPalette.cpp

     文件      12007  2013-05-14 10:10  CustPalette\CustPalette.h

     文件       2717  2006-01-15 19:05  CustPalette\CustPalette.idl

     文件       3033  2006-01-18 19:51  CustPalette\CustPalette.rc

     文件        131  2005-09-08 19:04  CustPalette\CustPalette.rgs

     文件        911  2005-10-06 19:43  CustPalette\CustPalette.sln

     文件       7712  2006-01-25 16:34  CustPalette\CustPalette.vcproj

     文件      14116  2006-01-15 19:06  CustPalette\dwgPreview.h

     文件        860  2005-09-13 20:33  CustPalette\dwgPreview.rgs

     文件       1904  2006-02-03 16:49  CustPalette\InspData.cpp

     文件       2637  2006-01-15 19:07  CustPalette\InspData.h

     文件        675  2005-09-08 19:35  CustPalette\InspData.rgs

     文件        675  2005-09-08 19:37  CustPalette\InspData1.rgs

     文件       6341  2006-01-12 22:15  CustPalette\InspPalette.cpp

     文件       2334  2006-01-12 22:15  CustPalette\InspPalette.h

     文件       8693  2006-01-12 22:16  CustPalette\Palette.cpp

     文件       2678  2006-01-12 22:16  CustPalette\Palette.h

     文件       4740  2006-01-15 17:17  CustPalette\PaletteSet.cpp

     文件       1752  2006-01-15 17:17  CustPalette\PaletteSet.h

     文件       1369  2006-01-12 22:17  CustPalette\ReadMe.txt

     文件       2023  2006-01-15 19:15  CustPalette\Resource.h

     文件       2306  2006-01-12 22:17  CustPalette\rxdebug.cpp

     文件       1610  2006-01-12 22:17  CustPalette\rxdebug.h

     文件       1371  2006-01-12 22:18  CustPalette\StdAfx.cpp

     文件       5713  2006-01-12 22:18  CustPalette\StdAfx.h

     文件   26987520  2013-05-14 10:40  CustPalette\CustPalette.ncb

     文件      21504  2013-03-26 11:13  CustPalette\CustPalette.aps

    ..A..H.     22016  2013-05-14 10:40  CustPalette\CustPalette.suo

     文件       1397  2013-05-14 10:40  CustPalette\CustPalette.vcproj.COMBACN.yaopeng.user

............此处省略34个文件信息

评论

共有 条评论

相关资源