forked from Thomas-Mielke-Software/ECTImport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEinstellungCtrl.h
58 lines (49 loc) · 1.51 KB
/
EinstellungCtrl.h
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
58
// EinstellungCtrl.h : Declaration of ActiveX Control wrapper class(es) created by Microsoft Visual C++
#pragma once
/////////////////////////////////////////////////////////////////////////////
// CEinstellung
class CEinstellung : public CWnd
{
protected:
DECLARE_DYNCREATE(CEinstellung)
public:
CLSID const& GetClsid()
{
static CLSID const clsid
= { 0xDFA091A6, 0xD040, 0x444F, { 0x80, 0xA, 0x65, 0x6B, 0xEA, 0x33, 0x61, 0xC3 } };
return clsid;
}
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext = NULL)
{
return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID);
}
BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd,
UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE,
BSTR bstrLicKey = NULL)
{
return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
pPersist, bStorage, bstrLicKey);
}
// Attributes
public:
// Operations
public:
CString HoleEinstellung(LPCTSTR ID)
{
CString result;
static BYTE parms[] = VTS_BSTR ;
InvokeHelper(0x1, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms, ID);
return result;
}
void SpeichereEinstellung(LPCTSTR ID, LPCTSTR Wert)
{
static BYTE parms[] = VTS_BSTR VTS_BSTR ;
InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms, ID, Wert);
}
void AboutBox()
{
InvokeHelper(DISPID_ABOUTBOX, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
};