diff --git a/embedding/browser/activex/tests/cbrowse/CBrowseDlg.cpp b/embedding/browser/activex/tests/cbrowse/CBrowseDlg.cpp index 624e95fd2a2..3ab3745ee3a 100644 --- a/embedding/browser/activex/tests/cbrowse/CBrowseDlg.cpp +++ b/embedding/browser/activex/tests/cbrowse/CBrowseDlg.cpp @@ -96,6 +96,8 @@ BEGIN_MESSAGE_MAP(CBrowseDlg, CDialog) ON_COMMAND(ID_VIEW_REFRESH, OnViewRefresh) ON_COMMAND(ID_VIEW_VIEWSOURCE, OnViewViewSource) ON_BN_CLICKED(IDC_STOP, OnStop) + ON_COMMAND(ID_FILE_SAVEAS, OnFileSaveAs) + ON_COMMAND(ID_FILE_PRINT, OnFilePrint) //}}AFX_MSG_MAP ON_COMMAND(IDB_BOLD, OnEditBold) ON_COMMAND(IDB_ITALIC, OnEditItalic) @@ -879,3 +881,13 @@ void CBrowseDlg::OnViewViewSource() { ExecOleCommand(&CGID_MSHTML, 3); } + +void CBrowseDlg::OnFileSaveAs() +{ + ExecOleCommand(NULL, OLECMDID_SAVEAS); +} + +void CBrowseDlg::OnFilePrint() +{ + ExecOleCommand(NULL, OLECMDID_PRINT); +} diff --git a/embedding/browser/activex/tests/cbrowse/CBrowseDlg.h b/embedding/browser/activex/tests/cbrowse/CBrowseDlg.h index 5825c985b89..b3b78c822a0 100644 --- a/embedding/browser/activex/tests/cbrowse/CBrowseDlg.h +++ b/embedding/browser/activex/tests/cbrowse/CBrowseDlg.h @@ -99,6 +99,8 @@ protected: afx_msg void OnViewRefresh(); afx_msg void OnViewViewSource(); afx_msg void OnStop(); + afx_msg void OnFileSaveAs(); + afx_msg void OnFilePrint(); //}}AFX_MSG afx_msg void OnEditBold(); afx_msg void OnEditItalic(); diff --git a/embedding/browser/activex/tests/cbrowse/cbrowse.rc b/embedding/browser/activex/tests/cbrowse/cbrowse.rc index 2e0d01cab65..24958e11eec 100644 --- a/embedding/browser/activex/tests/cbrowse/cbrowse.rc +++ b/embedding/browser/activex/tests/cbrowse/cbrowse.rc @@ -203,6 +203,10 @@ IDR_MAIN MENU DISCARDABLE BEGIN POPUP "&File" BEGIN + MENUITEM "Sa&ve As...", ID_FILE_SAVEAS + MENUITEM SEPARATOR + MENUITEM "&Print Page", ID_FILE_PRINT + MENUITEM SEPARATOR MENUITEM "E&xit", ID_FILE_EXIT END POPUP "&Edit" diff --git a/embedding/browser/activex/tests/cbrowse/resource.h b/embedding/browser/activex/tests/cbrowse/resource.h index 84e4168cf2d..df4631f44d7 100644 --- a/embedding/browser/activex/tests/cbrowse/resource.h +++ b/embedding/browser/activex/tests/cbrowse/resource.h @@ -64,13 +64,14 @@ #define ID_VIEW_GOTO_HOME 32789 #define ID_EDIT_SELECTALL 32790 #define ID_VIEW_REFRESH 32791 +#define ID_FILE_SAVEAS 32793 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 142 -#define _APS_NEXT_COMMAND_VALUE 32792 +#define _APS_NEXT_COMMAND_VALUE 32794 #define _APS_NEXT_CONTROL_VALUE 1028 #define _APS_NEXT_SYMED_VALUE 107 #endif