/*
- * freeglut_menu_mswin.c
+ * fg_menu_mswin.c
*
* The Windows-specific mouse cursor related stuff.
*
/* window that got focus was not one of the active menus. That means we'll
* close the active menu's unless the window that got focus was their parent */
menu = fgGetActiveMenu();
-
+
if (newFocusWnd != menu->ParentWindow->Window.Handle)
{
/* focus shifted to another window than the menu's parent, close menus */
return glutCreateMenu( callback );
}
+int FGAPIENTRY __glutCreateMenuUcallWithExit(void(*callback)(int, void*), void(__cdecl *exit_function)(int), void* user_data)
+{
+ __glutExitFunc = exit_function;
+ return glutCreateMenuUcall(callback, user_data);
+}