954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

c++ win32 menus: WM_COMMAND

Hi, I was wondering with the menu bar how to open, save and make a new file on the menu bar

case MENU_FILE_ID_OPEN:
{
  //something to open the file                   
} break;


i have no idea at all how to do this, i have searched the net but it just comes up with tons of "how to open and save files in microsoft visual studio" type of things.

thanks

11silversurfer1
Newbie Poster
17 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

Just use normal file i/o streams such as ifstream and ofstream. If you want to display the usual OpenFile dialog box that lets you select the file you want to open then call GetOpenFileName()

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

Thanks!!! :)

11silversurfer1
Newbie Poster
17 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You