зеркало из https://github.com/mozilla/pjs.git
NOT PART OF BUILD.
Added menu items and code to test print and save as behaviour
This commit is contained in:
Родитель
52b41928b6
Коммит
fcbfc91df8
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче