高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】problem enablegsmodel and layers
problem: enablegsmodel and layers
problem: enablegsmodel and layers
i use version 1.13.02,
when enablegsmodel is true,
i can make then layer off but it is still visible.
the code:
pcontextfordb->enablegsmodel(true);
....
m_player->upgradeopen();
if (m_player->iswriteenabled())
{
m_player->setisoff(true);
m_player->downgradeopen();
}
when i don't use enablegsmodel everything is ok?
last edited by michał krzesiak; 6th january 2006 at 05:55 amfff">.
enablegsmodel
yes, you need to update your view.
if (m_pdevice.isnull())
return;
//oddbobjectptr pent2erase = ident2erase.safeopenobject();
odgslayouthelperptr plh = m_pdevice;
if(plh->gsmodel())
plh->gsmodel()->invalidate(odgsmodel::kinvalidateall);
thanks,
laurent
|