几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】ondropfiles90 bug (http://www.dimcax.com/hust/showthread.php?t=17797)

yang686526 2009-05-06 09:21 PM

【转帖】ondropfiles90 bug
 
ondropfiles() bug ?
ondropfiles() bug ?
hi,
i test the function_ondropfiles, it maybe occur the error in odgsmodellayouthelperimpl.
i have tested singledoc ver1.14.02
void csingledocview::oninitialupdate()
{
cview::oninitialupdate();
dragacceptfiles(true); // drag&drop use...
odgicontextfordbdatabase::setdatabase( getdocument()->m_pdb );
enablegsmodel(true) ;
resetdevice( true ) ;
}
add function on_wm_dropfiles in mfc class wizard.
void csingledocview::ondropfiles(hdrop hdropinfo)
{
// todo: add your message handler code here and/or call default
char szfullpath[_max_path];
:ragqueryfile(hdropinfo, 0, szfullpath, sizeof(szfullpath) );
getdocument()->onopendocument(szfullpath);
cview::ondropfiles(hdropinfo);
}
just my problem?
thanks.
singledoc sample does not contain drag&drop support.
you mentioned layouthelper. what problem do you have with it?
sergey slezkin


所有的时间均为北京时间。 现在的时间是 12:55 PM.