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