-
Notifications
You must be signed in to change notification settings - Fork 0
/
sensDiag.cpp
57 lines (41 loc) · 1.03 KB
/
sensDiag.cpp
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
// sensDiag.cpp : implementation file
//
#include "stdafx.h"
#include "OpenGL.h"
#include "sensDiag.h"
// sensDiag dialog
IMPLEMENT_DYNCREATE(sensDiag, CDHtmlDialog)
sensDiag::sensDiag(CWnd* pParent /*=NULL*/)
: CDHtmlDialog(sensDiag::IDD, sensDiag::IDH, pParent)
{
}
sensDiag::~sensDiag()
{
}
void sensDiag::DoDataExchange(CDataExchange* pDX)
{
CDHtmlDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_SCROLLBAR1, val);
}
BOOL sensDiag::OnInitDialog()
{
CDHtmlDialog::OnInitDialog();
return TRUE; // return TRUE unless you set the focus to a control
}
BEGIN_MESSAGE_MAP(sensDiag, CDHtmlDialog)
END_MESSAGE_MAP()
BEGIN_DHTML_EVENT_MAP(sensDiag)
DHTML_EVENT_ONCLICK(_T("ButtonOK"), OnButtonOK)
DHTML_EVENT_ONCLICK(_T("ButtonCancel"), OnButtonCancel)
END_DHTML_EVENT_MAP()
// sensDiag message handlers
HRESULT sensDiag::OnButtonOK(IHTMLElement* /*pElement*/)
{
OnOK();
return S_OK;
}
HRESULT sensDiag::OnButtonCancel(IHTMLElement* /*pElement*/)
{
OnCancel();
return S_OK;
}