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

view in monochrome
view in monochrome
i have modified this file to view a dwg in one color only with the opengl devices. (in dd_nonlibs\examples\exrender\win folder)
i send it to the forum if someone want to use it
thierry
i add the new propertie to the device like that in my view class :
if(pproperties.get())
{
pproperties->putat("windowhdc", odrxvariantvalue((long)m_hwindowdc));
if (l_device != "wingdi")
pproperties->putat("monochrome", theapp.getmonochrome() ? odrxvariantvalue(true) : odrxvariantvalue(false)); fff">
if(pproperties->has("doublebufferenabled")) // check if property is supported
{
pproperties->putat( "doublebufferenabled", odrxvariantvalue(true));
}
}
attached files
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)