PDA

View Full Version : GLUT and File Browsing with Windows



mjleamy
12-03-2003, 06:46 AM
Does anyone know how to get GLUT to call the native windows API so that you can use a file browsing box? I want to have a dropdown menu item entitled "File" which when the user clicks on it has an "Open" subitem which then opens up the standard windows file browsing window. The user could then select the file they want to open. Maybe there is a way to mimick this feature? I do not want to use MFC! Thanks, Michael.

jra101
12-03-2003, 08:43 AM
You can create a context menu with GLUT and have a "Open file..." menu item that then calls the GetOpenFileName function (Windows only), which will open a standard Open dialog box.