-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMinakortWebUpload.h
executable file
·133 lines (116 loc) · 4.78 KB
/
MinakortWebUpload.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
// MinakortWebUpload.h : Declaration of the CMinakortWebUpload
#pragma once
#include "resource.h" // main symbols
#include <atlctl.h>
// IMinakortWebUpload
[
object,
uuid(9C0BEABD-415D-40F5-B082-7221DC5E479A),
dual,
helpstring("IMinakortWebUpload Interface"),
pointer_default(unique)
]
__interface IMinakortWebUpload : public IDispatch
{
[id(1), helpstring("method ShowDialog")] HRESULT ShowDialog(void);
[id(2), helpstring("method ShowDialogOutOfProcess")] HRESULT ShowDialogOutOfProcess(void);
[propget, id(3), helpstring("property Quota")] HRESULT Quota([out, retval] ULONG* pVal);
[propput, id(3), helpstring("property Quota")] HRESULT Quota([in] ULONG newVal);
[propget, id(4), helpstring("property UploadPath")] HRESULT UploadPath([out, retval] BSTR* pVal);
[propput, id(4), helpstring("property UploadPath")] HRESULT UploadPath([in] BSTR newVal);
[propget, id(5), helpstring("property UsedQuota")] HRESULT UsedQuota([out, retval] UINT* pVal);
[propput, id(5), helpstring("property UsedQuota")] HRESULT UsedQuota([in] UINT newVal);
[propget, id(6), helpstring("property LatestRelease")] HRESULT LatestRelease([out, retval] LONG* pVal);
[propput, id(6), helpstring("property LatestRelease")] HRESULT LatestRelease([in] LONG newVal);
[propget, id(7), helpstring("property ReleaseNumber")] HRESULT ReleaseNumber([out, retval] LONG* pVal);
[propput, id(8), helpstring("property RequiredRelease")] HRESULT RequiredRelease([in] LONG newVal);
[id(9), helpstring("method RunUpdate")] HRESULT RunUpdate(void);
};
// CMinakortWebUpload
[
coclass,
threading("apartment"),
vi_progid("MinakortControls.MinakortWebUpload"),
progid("MinakortControls.MinakortWebUpload.2"),
version(1.0),
uuid("215DA363-C55E-4597-861A-753F6C927E02"),
helpstring("MinakortWebUpload Class"),
support_error_info(IMinakortWebUpload),
registration_script("control.rgs")
]
class ATL_NO_VTABLE CMinakortWebUpload :
public IMinakortWebUpload,
public IPersistStreamInitImpl<CMinakortWebUpload>,
public IOleControlImpl<CMinakortWebUpload>,
public IOleObjectImpl<CMinakortWebUpload>,
public IOleInPlaceActiveObjectImpl<CMinakortWebUpload>,
public IViewObjectExImpl<CMinakortWebUpload>,
public IOleInPlaceObjectWindowlessImpl<CMinakortWebUpload>,
public IPersistStorageImpl<CMinakortWebUpload>,
public ISpecifyPropertyPagesImpl<CMinakortWebUpload>,
public IQuickActivateImpl<CMinakortWebUpload>,
public IDataObjectImpl<CMinakortWebUpload>,
public IProvideClassInfo2Impl<&__uuidof(CMinakortWebUpload), NULL>,
public CComControl<CMinakortWebUpload>,
public IObjectSafetyImpl<CMinakortWebUpload, INTERFACESAFE_FOR_UNTRUSTED_CALLER|INTERFACESAFE_FOR_UNTRUSTED_DATA>
{
public:
CMinakortWebUpload()
{
}
DECLARE_OLEMISC_STATUS(OLEMISC_RECOMPOSEONRESIZE |
OLEMISC_CANTLINKINSIDE |
OLEMISC_INSIDEOUT |
OLEMISC_ACTIVATEWHENVISIBLE |
OLEMISC_SETCLIENTSITEFIRST
)
BEGIN_PROP_MAP(CMinakortWebUpload)
PROP_DATA_ENTRY("_cx", m_sizeExtent.cx, VT_UI4)
PROP_DATA_ENTRY("_cy", m_sizeExtent.cy, VT_UI4)
// Example entries
// PROP_ENTRY("Property Description", dispid, clsid)
// PROP_PAGE(CLSID_StockColorPage)
END_PROP_MAP()
LRESULT OnClicked(UINT /*uMsg*/, WPARAM /*wParam*/, HWND /*lParam*/, BOOL& /*bHandled*/);
BEGIN_MSG_MAP(CMinakortWebUpload)
MESSAGE_HANDLER(WM_CREATE, OnCreate)
CHAIN_MSG_MAP(CComControl<CMinakortWebUpload>)
DEFAULT_REFLECTION_HANDLER()
END_MSG_MAP()
// Handler prototypes:
// LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
// LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
// LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
// IViewObjectEx
DECLARE_VIEW_STATUS(VIEWSTATUS_SOLIDBKGND | VIEWSTATUS_OPAQUE)
private:
UINT quota;
UINT usedQuota;
CString uploadPath;
UINT LatestRelease;
UINT RequiredRelease;
IMinakortWebUpload* pInnerControl;
STDMETHOD(EnsureVersion)(HWND parent);
// IMinakortWebUpload
public:
LRESULT OnDraw(ATL_DRAWINFO& di);
DECLARE_PROTECT_FINAL_CONSTRUCT()
// HRESULT FinalConstruct();
void FinalRelease();
LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
STDMETHOD(ShowDialog)(void);
// static void WINAPI ObjectMain(bool bStarting);
HRESULT FinalConstruct();
STDMETHOD(ShowDialogOutOfProcess)(void);
STDMETHOD(get_Quota)(ULONG* pVal);
STDMETHOD(put_Quota)(ULONG newVal);
STDMETHOD(get_UploadPath)(BSTR* pVal);
STDMETHOD(put_UploadPath)(BSTR newVal);
STDMETHOD(get_UsedQuota)(UINT* pVal);
STDMETHOD(put_UsedQuota)(UINT newVal);
STDMETHOD(get_LatestRelease)(LONG* pVal);
STDMETHOD(put_LatestRelease)(LONG newVal);
STDMETHOD(get_ReleaseNumber)(LONG* pVal);
STDMETHOD(put_RequiredRelease)(LONG newVal);
STDMETHOD(RunUpdate)(void);
};