| 1 |
// ScriptOutputDlg.cpp : implementation file |
|---|
| 2 |
// |
|---|
| 3 |
|
|---|
| 4 |
#include "stdafx.h" |
|---|
| 5 |
#include "Elephant.h" |
|---|
| 6 |
#include "ScriptOutputDlg.h" |
|---|
| 7 |
|
|---|
| 8 |
#ifdef _DEBUG |
|---|
| 9 |
#define new DEBUG_NEW |
|---|
| 10 |
#undef THIS_FILE |
|---|
| 11 |
static char THIS_FILE[] = __FILE__; |
|---|
| 12 |
#endif |
|---|
| 13 |
|
|---|
| 14 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 15 |
// CScriptOutputDlg dialog |
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
CScriptOutputDlg::CScriptOutputDlg(CWnd* pParent /*=NULL*/) |
|---|
| 19 |
: CDialog(CScriptOutputDlg::IDD, pParent) |
|---|
| 20 |
{ |
|---|
| 21 |
//{{AFX_DATA_INIT(CScriptOutputDlg) |
|---|
| 22 |
// NOTE: the ClassWizard will add member initialization here |
|---|
| 23 |
//}}AFX_DATA_INIT |
|---|
| 24 |
} |
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
void CScriptOutputDlg::DoDataExchange(CDataExchange* pDX) |
|---|
| 28 |
{ |
|---|
| 29 |
CDialog::DoDataExchange(pDX); |
|---|
| 30 |
//{{AFX_DATA_MAP(CScriptOutputDlg) |
|---|
| 31 |
DDX_Control(pDX, IDC_EXPLORER2, m_webBrowser); |
|---|
| 32 |
//}}AFX_DATA_MAP |
|---|
| 33 |
} |
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
BEGIN_MESSAGE_MAP(CScriptOutputDlg, CDialog) |
|---|
| 37 |
//{{AFX_MSG_MAP(CScriptOutputDlg) |
|---|
| 38 |
ON_WM_SIZE() |
|---|
| 39 |
//}}AFX_MSG_MAP |
|---|
| 40 |
END_MESSAGE_MAP() |
|---|
| 41 |
|
|---|
| 42 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 43 |
// CScriptOutputDlg message handlers |
|---|
| 44 |
|
|---|
| 45 |
void CScriptOutputDlg::OnSize(UINT nType, int cx, int cy) |
|---|
| 46 |
{ |
|---|
| 47 |
CDialog::OnSize(nType, cx, cy); |
|---|
| 48 |
|
|---|
| 49 |
m_webBrowser.MoveWindow(0,0,cx,cy); |
|---|
| 50 |
} |
|---|
| 51 |
|
|---|
| 52 |
BOOL CScriptOutputDlg::PreTranslateMessage(MSG* pMsg) |
|---|
| 53 |
{ |
|---|
| 54 |
// TODO: Add your specialized code here and/or call the base class |
|---|
| 55 |
|
|---|
| 56 |
return Globals::theApp.m_pMainWnd->PreTranslateMessage(pMsg); |
|---|
| 57 |
} |
|---|