查看单个帖子
旧 2009-05-06, 04:38 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】layer window

layer window
layer window
hi!
i抦 trying to grab the layer window from the odamfcapp and then implement it the same way in my own app.
i抳e only been into dwgdirect for a couple of weeks and i need more time to look into things, no doubt.
but i still find below to be a bit puzzling.
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx
?
?
#include "odalayerpropmanagerdlg.h"
?
?
bool cdxfdocview:nopenlayerdlg()
{
lpctstr lpszpathname = m_pdocument->getpathname();
if (!lpszpathname)
return false;
try
{
m_pdb = theapp.readfile( lpszpathname , true, false);
odalayerpropmanagerdlg dlglayerpropmaneger( m_pdb );
if (idok == dlglayerpropmaneger.domodal())
{
updateallviews(0);
}
}
catch(oderror& /*e*/)
{
}
catch(userbreak)
{
return false;
}
return true;
}
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx
nothing happens! i抳e missed something maybe not above but there are thing needed to be done but where. please help me!
best to all of you!
hi again!
i've come so far so i understand that it has to be:
dlglayerpropmaneger.domodal())
that is not doing it's job.
it's now been fixed!
i missed some basic things that's all folks!
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)