Jump to content
  • Advertisement
Sign in to follow this  
muimui1911

[Win32/openGL]How could I make the "open File Menu" pop out?

This topic is 4833 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello guys, First of all, I use WIN32 application with OpenGL functions. I need to import some 3D models into my 3D environment selectively; so i need to make the menu visible with a name "open" in the menu under the "File" column, which i have already done. I would like to ask, 1. How can I make the popup OpenFile menu, so I can select which file to import? 2. How Do i make the Toolbar visible? 3. If I want to make the botton on the toolbar, how do i do that? Millions of thanks

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by muimui1911
1. How can I make the popup OpenFile menu, so I can select which file to import?


maybe GetOpenFileName(...) is what you're looking for.

Share this post


Link to post
Share on other sites
Quote:
Original post by fnm

maybe GetOpenFileName(...) is what you're looking for.




nono, i want to open the openFiles menu when running the program.
The openFiles menus is a popup menu just like any other programs, when Click the "Open" button

Share this post


Link to post
Share on other sites
I would suggest moving to wxWidgets with this kind of stuff. It makes it extremely easy to set up things like this and more.

http://www.wxwidgets.org

If you decide to move to this and have trouble setting up Visual Studio .NET project, like i did, then i can help with that, PM me.

ace

Share this post


Link to post
Share on other sites
A basic thing: you're going to have to suspend the OpenGL screen display from swapping buffers or displaying. Then the OpenFileMenu can be shown.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!