查看单个帖子
旧 2009-05-06, 09:21 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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:ninitialupdate()
{
cview:ninitialupdate();
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:ndropfiles(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:ndropfiles(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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)