void MCStack::stop_externals() { Boolean oldlock = MClockmessages; MClockmessages = True; MCPlayer *tptr = MCplayers; while (tptr != NULL) { if (tptr->getstack() == this) { if (tptr->playstop()) tptr = MCplayers; // was removed, start search over } else tptr = tptr->getnextplayer(); } if (!MCnoui && window != DNULL) { RevokeDragDrop((HWND)window->handle.window); CoLockObjectExternal(droptarget, FALSE, TRUE); droptarget->setstack(NULL); delete droptarget; droptarget = nil; } destroywindowshape(); MClockmessages = oldlock; unloadexternals(); }
void MCStack::stop_externals() { Boolean oldlock = MClockmessages; MClockmessages = True; MCPlayer *tptr = MCplayers; while (tptr != NULL) { if (tptr->getstack() == this) { if (tptr->playstop()) tptr = MCplayers; // was removed, start search over } else tptr = tptr->getnextplayer(); } destroywindowshape(); MClockmessages = oldlock; unloadexternals(); if (window != NULL) MCRevolutionStackViewRelink((WindowPtr)window -> handle . window, NULL); }