资源简介
使用ObjectArx接口在CAD2010上实现的屏幕菜单。
此例子从CAdUiPaletteSet类派生,仅用于学习参考。

代码片段和文件信息
// (C) Copyright 2002-2007 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.
//
//-----------------------------------------------------------------------------
//----- acrxEntryPoint.cpp
//-----------------------------------------------------------------------------
#include “StdAfx.h“
#include “resource.h“
#include “MyPaletteSet.h“
//-----------------------------------------------------------------------------
#define szRDS _RXST(““)
CMyPaletteSet* g_pPaletteSet;
//-----------------------------------------------------------------------------
//----- objectARX EntryPoint
class CPalettsetProApp : public AcRxArxApp {
public:
CPalettsetProApp () : AcRxArxApp () {}
virtual AcRx::AppRetCode On_kInitAppMsg (void *pkt) {
// TODO: Load dependencies here
// You *must* call On_kInitAppMsg here
AcRx::AppRetCode retCode =AcRxArxApp::On_kInitAppMsg (pkt) ;
// TODO: Add your initialization code here
return (retCode) ;
}
virtual AcRx::AppRetCode On_kUnloadAppMsg (void *pkt) {
// TODO: Add your code here
// You *must* call On_kUnloadAppMsg here
AcRx::AppRetCode retCode =AcRxArxApp::On_kUnloadAppMsg (pkt) ;
// TODO: Unload dependencies here
if(g_pPaletteSet)
{
delete g_pPaletteSet;
g_pPaletteSet = NULL;
}
return (retCode) ;
}
virtual void RegisterServerComponents () {
}
// - PalettsetPro.CmdPalette command (do not rename)
static void PalettsetProCmdPalette(void)
{
// Add your code for command PalettsetPro.CmdPalette here
CMDiframeWnd *pAcadframe = acedGetAcadframe();
if(g_pPaletteSet==NULL)
{
g_pPaletteSet = new CMyPaletteSet;
CAcModuleResourceOverride myResources;
g_pPaletteSet->Create(pAcadframe _T(“Command Bar“));
g_pPaletteSet->EnableDocking (CBRS_ALIGN_LEFT);
g_pPaletteSet->RestoreControlBar(); //此语句影响后期修改对话框的初始大小
}
else
{
//设置浮动ControlBar
// pAcadframe->FloatControlBar(g_MyDCB CPoint (100 100) CBRS_ALIGN_TOP);
pAcadframe->ShowControlBar(g_pPaletteSet TRUE TRUE);
}
}
} ;
//--------------------
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-02-22 17:29 PalettsetPro\
文件 2845 2013-02-22 17:24 PalettsetPro\CmdChildDlg.cpp
文件 584 2013-02-22 17:06 PalettsetPro\CmdChildDlg.h
文件 1895 2013-02-22 16:27 PalettsetPro\DocData.cpp
文件 1692 2013-02-22 16:27 PalettsetPro\DocData.h
文件 4275 2013-02-22 16:41 PalettsetPro\MyCmdPalette.cpp
文件 2191 2013-02-22 16:42 PalettsetPro\MyCmdPalette.h
文件 3232 2013-02-22 16:55 PalettsetPro\MyPaletteSet.cpp
文件 1957 2013-02-22 16:54 PalettsetPro\MyPaletteSet.h
文件 2469 2013-02-22 16:27 PalettsetPro\PalettsetPro.cpp
文件 2909 2013-02-22 17:07 PalettsetPro\PalettsetPro.rc
文件 1243 2013-02-22 16:27 PalettsetPro\PalettsetPro.sln
文件 14336 2013-02-22 17:28 PalettsetPro\PalettsetPro.suo
文件 10205 2013-02-22 16:39 PalettsetPro\PalettsetPro.vcproj
文件 1371 2013-02-22 16:27 PalettsetPro\StdAfx.cpp
文件 4551 2013-02-22 16:27 PalettsetPro\StdAfx.h
文件 3238 2013-02-22 17:01 PalettsetPro\acrxEntryPoint.cpp
文件 544 2013-02-22 16:31 PalettsetPro\resource.h
- 上一篇:ARX实现屏幕菜单DockControlBar)
- 下一篇:DEAP2.1软件及资料
相关资源
- DXperienceUniversal 10.1.6(2010年8月13日版
- CAD2010注册机32bit and 64bit
- ado数据库MFC图书管理系统vs2010
- visual studio 2010 黑色主题,保护你的眼
-
AutoCAD ob
jectARX二次开发实例-状态栏 - 图文手把手教你一步步用VC 2010编写通
- 图文手把手教你一步步用VC 2010编写通
-
解决安装vs2012后vs2010 li
nk : fatal er - 快乐伴侣 V1.05 2010-7-14更新后可用版本
- GBT 20438.3-2017(IEC 61508-3-2010) 电气 电
- AnkhSvn-2.6.12735 支持VS2010-VS2015 官方原版
- 中文版AutoCAD_Mechanical_2010_官方教程-
- 初学Visual Basic 2010代码
- office2010时安装找不到dwtrig20.exe
- VS2010、VS2012、VS2013代码自动注释插件
- 最新BW量产工具——BW_Tool_v2.0
- 插件式GIS应用框架的设计与实现&mda
- Exchange2010标准版/企业版注册码
- 通过x264录制RGB屏幕视频vs2013工程,
- G726、G711、G711A转换为AAC
- VS2010 运行时库
- IAR 全系列软件注册机(20100615)
- Visual Studio 2010 SP1完整安装镜像
- Delphi VCLSkin 5.60
- TR31-2010标准
- vs2010 ffmpeg实时解码h264码流
- 黑客防线2010下半年合订本源码.rar
- 图灵数学·统计学丛书42-概率论基础教
- 个人银行账户管理系统
- CMake-3.9.0
评论
共有 条评论