会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xzh1993
CAD二次开发小白之路
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
23
下一页
2016年10月10日
arx刷新图形界面
摘要: actrTransactionManager->flushGraphics(); acedUpdateDisplay();
阅读全文
posted @ 2016-10-10 11:42 xzh1993
阅读(713)
评论(0)
推荐(0)
2016年10月9日
ARX亮显问题
摘要: 转载一段acedSSSetFirst的用法仅供参考:打个比方,我创建了一个命令,这个命令的功能是提示用户选择,然后只过滤文本对象作为选择集,随后在屏幕上使得这个选择集的所有成员都亮显,并且能够显示出各成员上的夹点。通常我们在cad中什么命令也不输入的时候,随便框选一下图中的对象得到的选择集就是被亮显
阅读全文
posted @ 2016-10-09 16:24 xzh1993
阅读(1368)
评论(0)
推荐(0)
2016年9月26日
标注样式问题
摘要: [cpp] view plain copy print? [cpp] view plain copy print?
阅读全文
posted @ 2016-09-26 15:36 xzh1993
阅读(241)
评论(0)
推荐(0)
2016年9月20日
radiobutton group
摘要: 1. 环境:VS2010 2. 分组 将radio1、radio2、radio3分为1组,radio4、radio5分为另一组; 方法:设置 radio1 的 属性: group、tabstop、auto均为true 设置 radio2 的 属性: group设为false, tabstop、aut
阅读全文
posted @ 2016-09-20 11:26 xzh1993
阅读(429)
评论(0)
推荐(0)
2016年9月13日
STL容器的排序
摘要: STL容器的排序,支持随机访问的容器vector,deque,string没有sort成员,可调用std::sort排序;list排序调用自带的list::sort。 下面是std::sort函数,有两个版本: [cpp] view plain copy template <class Random
阅读全文
posted @ 2016-09-13 16:40 xzh1993
阅读(2879)
评论(0)
推荐(0)
排序例子
摘要: struct aaa { bool operator() (const pair<CString, CString> map1, const pair<CString, CString> map2) { return map1.second < map2.second; } }; static vo
阅读全文
posted @ 2016-09-13 16:07 xzh1993
阅读(205)
评论(0)
推荐(0)
2016年9月6日
std list/vector sort 自定义类的排序就是这么简单
摘要: 所以,自己研究了一下,如下:三种方式都可以,如重写<,()和写比较函数compare_index。但是要注意对象和对象指针的排序区别。 1、容器中是对象时,用操作符<或者比较函数,比较函数参数是引用。 2、容器中是对象指针时,用()和比较函数排序都可以,比较函数参数是指针。 3、list用成员方法s
阅读全文
posted @ 2016-09-06 15:40 xzh1993
阅读(6729)
评论(0)
推荐(0)
C++算法库学习__std::sort__对 vector进行排序_排序后就可以进行使用std::lower_bound进行二分查找(查找第一个大于等于指定值的迭代器的位置)__std::unique
摘要: std::sort 对vector成员进行排序; std::sort(v.begin(),v.end(),compare); std::lower_bound 在排序的vector中进行二分查找,查找第一大于等于; std::lower_bound(v.begin(),v.end(),v.eleme
阅读全文
posted @ 2016-09-06 15:37 xzh1993
阅读(652)
评论(0)
推荐(0)
2016年8月12日
cstring replace
摘要: //使用后将图纸名称存储到配置 换行符用^^替换 m_sTZMC.Replace(_T("\r\n"), _T("^^")); ini.SetValueOfKey(_T("FRAME"), _T("TZMC"), m_sTZMC);
阅读全文
posted @ 2016-08-12 10:17 xzh1993
阅读(1910)
评论(0)
推荐(0)
2016年8月8日
将当前图纸中选中的实体克隆生成块到当前图纸 将选中的实体生成块后克隆到其他图纸
摘要: 1 AcDbObjectId CreatBlockForAcdbobjectidarr(AcDbObjectIdArray ptarr,AcGePoint3d pt, CString sName) 2 { 3 //创建一个块参照在当前数据库中 4 AcDbBlockTable *pBlkTab=NU
阅读全文
posted @ 2016-08-08 15:44 xzh1993
阅读(345)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
23
下一页
公告