几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】oddbole2frame simplest way to implement visualisation (http://www.dimcax.com/hust/showthread.php?t=17572)

yang686526 2009-05-06 07:59 PM

【转帖】oddbole2frame simplest way to implement visualisation
 
oddbole2frame: simplest way to implement visualisation?
oddbole2frame: simplest way to implement visualisation?
dd 1.14: during vectorization i call odgsbasevectorizeview::draw(pdrawable). for oddbole2frame i will receive a:
myview::ownerdrawdc(....., const odgiselfgdidrawable* pdrawable, ... )
what kind of odgiselfgdidrawable-derived will the base implementation create for a oddbole2frame?
when i in my ownerdrawdc call pdrawable->draw(context, hdc, rect) with sensible values it seems to be a nop that returns immediately. what do the default draw implementation for this odgiselfgdidrawable-derived do?
i see that odamfcapp has an ole.cpp with a oledwgitem that implements odgiselfgdidrawable's draw. i don't have to do that in my implementation, do i?
-rune jorgensen
www.dds.no
hi,
we provide simple implementation for rendering ole in "odoleitemhandler.drx", so you should make make it available for dd:
1. dll version: just put "odoleitemhandler.drx" with other dd dlls.
2. lib version: link with oleitemhandler.lib and include appropriate macro in statically-linked-module map:
odrx_declare_static_module_entry_point(odoleitemha ndlermoduleimpl);
odrx_begin_static_module_map()
...
odrx_define_static_application("odoleitemhandler", odoleitemhandlermoduleimpl)
...
odrx_end_static_module_map()
and insert
odrx_init_static_module_map();
macro before odinitialize().
last edited by dmitry a. novikov; 3rd march 2006 at 06:24 amfff">.

> put "odoleitemhandler.drx" with other dd dlls
thanks, that did it!
-rune jorgensen
www.dds.no


所有的时间均为北京时间。 现在的时间是 05:31 AM.