-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathARCorrectPage.cpp
54 lines (44 loc) · 1.22 KB
/
ARCorrectPage.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
#include "ARCorrectPage.h"
CARCorrectFilterPage::CARCorrectFilterPage(LPUNKNOWN pUnk, HRESULT *pHr)
: CBasePropertyPage(TEXT("ARCorrect Page"), pUnk, IDD_ARCORRECT_PAGE, IDS_ARCORRECT_PAGE_TITLE)
, m_pFilter(NULL)
{
InitCommonControls();
}
CARCorrectFilterPage::~CARCorrectFilterPage() {
};
HRESULT CARCorrectFilterPage::OnConnect(IUnknown *pUnk) {
if (pUnk == NULL) {
return E_POINTER;
}
HRESULT hr = S_OK;
/*ASSERT(m_pFilter == NULL);
HRESULT hr = pUnk->QueryInterface(IID_IDSCryptDecryptorFilter, reinterpret_cast<void**>(&m_pFilter));
if (hr == S_OK) {
m_pFilter->GetEncrytionMethod((void **)&m_EncrytionMethod);
}*/
return hr;
};
HRESULT CARCorrectFilterPage::OnDisconnect() {
// Release of Interface after setting the appropriate contrast value
if (!m_pFilter)
return E_UNEXPECTED;
m_pFilter->Release();
m_pFilter = NULL;
return NOERROR;
}
BOOL CARCorrectFilterPage::OnReceiveMessage(HWND hwnd, UINT uMsg,WPARAM wParam,LPARAM lParam)
{
switch(uMsg)
{
case WM_INITDIALOG:
{
break;
}
}
return (BOOL)CBasePropertyPage::OnReceiveMessage(hwnd,uMsg,wParam,lParam);
}
CUnknown * WINAPI CARCorrectFilterPage::CreateInstance(LPUNKNOWN pUnk, HRESULT *pHr)
{
return new CARCorrectFilterPage(pUnk, pHr);
}