DLLCLBK void ExitModule (HINSTANCE hDLL) { // Unregister window classes UnregisterClass ("ExtMFD_Display", g_hInst); UnregisterClass ("ExtMFD_Button", g_hInst); // Free bitmap resources DeleteObject (g_hPin); // Unregister the custom function in Orbiter oapiUnregisterCustomCmd (g_dwCmd); }
MGAFinder::~MGAFinder() { oapiUnregisterCustomCmd(dwCmd); }