资源简介
使用ObjectArx接口在CAD2010上实现的屏幕菜单。
此例子从CAcUiDockControlBar类派生,仅用于学习参考。
代码片段和文件信息
// (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 “MyDockControlBar.h“
//-----------------------------------------------------------------------------
#define szRDS _RXST(““)
//-----------------------------------------------------------------------------
CMyDockControlBar* g_MyDCB;
//-----------------------------------------------------------------------------
//----- objectARX EntryPoint
class CDockControlBarApp : public AcRxArxApp {
public:
CDockControlBarApp () : 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
if(g_MyDCB)
{
delete g_MyDCB;
g_MyDCB = NULL;
}
// You *must* call On_kUnloadAppMsg here
AcRx::AppRetCode retCode =AcRxArxApp::On_kUnloadAppMsg (pkt) ;
// TODO: Unload dependencies here
return (retCode) ;
}
virtual void RegisterServerComponents () {
}
// - DockControlBar.MyCommandBar command (do not rename)
static void DockControlBarMyCommandBar(void)
{
// Add your code for command DockControlBar.MyCommandBar here
CMDiframeWnd *pAcadframe = acedGetAcadframe();
if(g_MyDCB==NULL)
{
g_MyDCB = new CMyDockControlBar;
CAcModuleResourceOverride myResources;
g_MyDCB->Create(pAcadframe _T(“Command Bar“));
g_MyDCB->EnableDocking (CBRS_ALIGN_LEFT);
g_MyDCB->RestoreControlBar(); //此语句影响后期修改对话框的初始大小
}
else
{
//设置浮动ControlBar
// pAcadframe->FloatControlBar(g_MyDCB CPoint (100 100) CBRS_ALIGN_TOP);
pAcadframe->ShowControlBar(g_MyDCB TR
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-02-22 17:28 DockControlBar\
文件 46592 2013-02-22 16:06 DockControlBar\ArxProject1.suo
目录 0 2013-02-22 17:28 DockControlBar\DockControlBar\
文件 1895 2012-12-17 08:41 DockControlBar\DockControlBar\DocData.cpp
文件 1692 2012-12-17 08:41 DockControlBar\DockControlBar\DocData.h
文件 2464 2012-12-17 08:41 DockControlBar\DockControlBar\DockControlBar.cpp
文件 2908 2013-02-22 16:03 DockControlBar\DockControlBar\DockControlBar.rc
文件 10142 2013-02-22 16:12 DockControlBar\DockControlBar\DockControlBar.vcproj
文件 5397 2013-02-22 14:16 DockControlBar\DockControlBar\MyDockControlBar.cpp
文件 2085 2013-02-22 13:42 DockControlBar\DockControlBar\MyDockControlBar.h
文件 3108 2013-02-22 15:56 DockControlBar\DockControlBar\MyDockControlBarChildDlg.cpp
文件 665 2013-02-22 15:12 DockControlBar\DockControlBar\MyDockControlBarChildDlg.h
文件 1371 2012-12-17 08:41 DockControlBar\DockControlBar\StdAfx.cpp
文件 4551 2012-12-17 08:41 DockControlBar\DockControlBar\StdAfx.h
文件 6564 2013-02-22 16:24 DockControlBar\DockControlBar\acrxEntryPoint.cpp
文件 588 2013-02-22 15:50 DockControlBar\DockControlBar\resource.h
文件 1262 2013-02-22 16:08 DockControlBar\DockControlBar.sln
文件 14336 2013-02-22 16:58 DockControlBar\DockControlBar.suo
相关资源
- ARX实现屏幕菜单(CAdUiPaletteSet)
- sha1sum校验算法及代码实现
- 海南省2010年信息学省队选拔试题及测
- 哈工大数字信号处理2010年考题
- 2019计算机二级office题库+题库系统+o
- visio 2010 32位 64位 百度云地址
- vs2010破解版百度链接.rar
- VISIO 2010 中文版
- 暗组2010.txt
- YDT 968-2010 电信终端设备电磁兼容性要
- ksh-20100621-6.el6.x86_64.rpm
- VS2010下使用CButtonST
- TCS2010安装包.rar
- VS2010酷酷的主题
- QJson使用VS2010+QT4.8编译
- K8 Struts2 Exploit(S2-005 CVE-2010-1870)漏洞
- IDEFixPack 5.7 for Delphi 2009/2010
- VS2010自带RDLC,子报表动态创建数据源
- Nvidia英伟达2010年笔试真题
- Visual Studio 2010 sp1 在线升级包
- xf-a2010-64bits注册机
- server 2008 r2 +exchange 2010
- Lua 5.1 for delphi 2010-XE4
- RAD Studio Delphi 2010 3615破解包
- TCS2010修正版
- onvif设备发现+鉴权认证+RTSP地址获取
- 基于VS2010的全局低级键盘钩子Hook de
- Visio 2010*64位简体中文专业版地址
- 极品时刻表|极品列车时刻表 2010.12.
- Visual Studio2010地址+破解
评论
共有 条评论