-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMyHtmlView.cpp
More file actions
57 lines (41 loc) · 1 KB
/
Copy pathCMyHtmlView.cpp
File metadata and controls
57 lines (41 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// CMyHtmlView.cpp : implementation file
//
#include "pch.h"
#include "soroMfcExSplit.h"
#include "CMyHtmlView.h"
// CMyHtmlView dialog
IMPLEMENT_DYNCREATE(CMyHtmlView, CDHtmlDialog)
CMyHtmlView::CMyHtmlView(CWnd* pParent /*=nullptr*/)
: CDHtmlDialog(IDD_DIALOG3, 310, pParent)
{
}
CMyHtmlView::~CMyHtmlView()
{
}
void CMyHtmlView::DoDataExchange(CDataExchange* pDX)
{
CDHtmlDialog::DoDataExchange(pDX);
}
BOOL CMyHtmlView::OnInitDialog()
{
CDHtmlDialog::OnInitDialog();
Navigate(_T("C:\\"));
return TRUE; // return TRUE unless you set the focus to a control
}
BEGIN_MESSAGE_MAP(CMyHtmlView, CDHtmlDialog)
END_MESSAGE_MAP()
BEGIN_DHTML_EVENT_MAP(CMyHtmlView)
DHTML_EVENT_ONCLICK(_T("ButtonOK"), OnButtonOK)
DHTML_EVENT_ONCLICK(_T("ButtonCancel"), OnButtonCancel)
END_DHTML_EVENT_MAP()
// CMyHtmlView message handlers
HRESULT CMyHtmlView::OnButtonOK(IHTMLElement* /*pElement*/)
{
OnOK();
return S_OK;
}
HRESULT CMyHtmlView::OnButtonCancel(IHTMLElement* /*pElement*/)
{
OnCancel();
return S_OK;
}