![]() |
【转帖】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. |