void unCC() { if (CCDone == TRUE) { acedRemoveWatchWinMsg(watchCC); CCDone = FALSE; } }
virtual AcRx::AppRetCode On_kUnloadAppMsg (void *pkt) { AcRx::AppRetCode retCode =AcRxArxApp::On_kUnloadAppMsg (pkt) ; // TODO: Add your code here UnloadApplication() ; if(bWatchSelectDone == TRUE) { acedRemoveWatchWinMsg(WatchSelect); acutPrintf(_T("\nHook has been removed!\n")); } return (retCode) ; }
void unloadApp() { // Remove the command group because we are unloading // acedRegCmds->removeGroup( "MKEvents" ); // Removing all hooks <no matter they're planted or not> if (capsDone == TRUE) acedRemoveFilterWinMsg(filterLC); if (mouseDone == TRUE) acedRemoveFilterWinMsg(filterMouse); if (letterXDone == TRUE) acedRemoveFilterWinMsg(filterLetterX); if (CCDone == TRUE) acedRemoveWatchWinMsg(watchCC); }