高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】dwg to metafile don´t works fine in 1.12, why?
dwg to metafile don´t works fine in 1.12, why?
dwg to metafile don´t works fine in 1.12, why?
hdc = ::createmetafile(0);
pproperties->putat("windowhdc", odrxvariantvalue((long)hdc));
it don´t work fine but
hdc = ::getdc(m_hwnd);
pproperties->putat("windowhdc", odrxvariantvalue((long)hdc));
works fine, why?
version of dd, lib or dll, debug or release, operating system?
what does mean "doesn't work fine"?
which device do you use (wingdi or opengl)?
sincerely yours,
george udov
you can use the project singledoc, if you can use an wmf instead of hwnd, probe to create an hdc from createmetafile("c:\\temp.wmf"); or 0 in memory.
when you paint this dc on the window or you see the file this view is different that if you use an getdc(m_hwnd). the image has many black lines on the view.
in viewkit this works fine.
i use lib dd_...md.lib with singledoc,
thank you.
could you try with createenhmetafile ?
sincerely yours,
george udov
thaks for your help, it works fine with createenhmetafile.
|