CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Common Dialog - ID_FILE_SAVE

    I need to be able to call the ID_FILE_SAVE from inside a function. How do I call "activate" ID_FILE_SAVE automatically from within a function, since it doesn't have a OnFileSave that I can see. My other question is about common dialogs. How do I call a commom dialog for instance the file open common dialog? Thanks for the help.



  2. #2
    Join Date
    May 1999
    Location
    Sydney, Australia
    Posts
    420

    Re: Common Dialog - ID_FILE_SAVE


    1)

    SendMessage( WM_COMMAND, ID_FILE_SAVE );

    2)

    CFileDialog() dlg;
    const int res = dlg.DoModal();
    if (res == IDOK)
    {
    //do stuff
    }




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured