-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhexedit.cpp
166 lines (135 loc) · 3.28 KB
/
hexedit.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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
#include "stdafx.h"
#include "hexedit.h"
/////////////////////////////////////////////////////////////////////////////
// CHexEdit
IMPLEMENT_DYNCREATE(CHexEdit, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CHexEdit properties
OLE_COLOR CHexEdit::GetForeColor()
{
OLE_COLOR result;
GetProperty(DISPID_FORECOLOR, VT_I4, (void*)&result);
return result;
}
void CHexEdit::SetForeColor(OLE_COLOR propVal)
{
SetProperty(DISPID_FORECOLOR, VT_I4, propVal);
}
OLE_COLOR CHexEdit::GetBackColor()
{
OLE_COLOR result;
GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
return result;
}
void CHexEdit::SetBackColor(OLE_COLOR propVal)
{
SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
}
BOOL CHexEdit::GetShowAddress()
{
BOOL result;
GetProperty(0x1, VT_BOOL, (void*)&result);
return result;
}
void CHexEdit::SetShowAddress(BOOL propVal)
{
SetProperty(0x1, VT_BOOL, propVal);
}
BOOL CHexEdit::GetShowAscii()
{
BOOL result;
GetProperty(0x2, VT_BOOL, (void*)&result);
return result;
}
void CHexEdit::SetShowAscii(BOOL propVal)
{
SetProperty(0x2, VT_BOOL, propVal);
}
short CHexEdit::GetAppearance()
{
short result;
GetProperty(DISPID_APPEARANCE, VT_I2, (void*)&result);
return result;
}
void CHexEdit::SetAppearance(short propVal)
{
SetProperty(DISPID_APPEARANCE, VT_I2, propVal);
}
short CHexEdit::GetDigitsInAddress()
{
short result;
GetProperty(0x5, VT_I2, (void*)&result);
return result;
}
void CHexEdit::SetDigitsInAddress(short propVal)
{
SetProperty(0x5, VT_I2, propVal);
}
short CHexEdit::GetDigitsInData()
{
short result;
GetProperty(0x6, VT_I2, (void*)&result);
return result;
}
void CHexEdit::SetDigitsInData(short propVal)
{
SetProperty(0x6, VT_I2, propVal);
}
short CHexEdit::GetColumns()
{
short result;
GetProperty(0x7, VT_I2, (void*)&result);
return result;
}
void CHexEdit::SetColumns(short propVal)
{
SetProperty(0x7, VT_I2, propVal);
}
short CHexEdit::GetFontHeight()
{
short result;
GetProperty(0x8, VT_I2, (void*)&result);
return result;
}
void CHexEdit::SetFontHeight(short propVal)
{
SetProperty(0x8, VT_I2, propVal);
}
BOOL CHexEdit::GetAllowChangeSize()
{
BOOL result;
GetProperty(0x3, VT_BOOL, (void*)&result);
return result;
}
void CHexEdit::SetAllowChangeSize(BOOL propVal)
{
SetProperty(0x3, VT_BOOL, propVal);
}
BOOL CHexEdit::GetDataModified()
{
BOOL result;
GetProperty(0x4, VT_BOOL, (void*)&result);
return result;
}
void CHexEdit::SetDataModified(BOOL propVal)
{
SetProperty(0x4, VT_BOOL, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CHexEdit operations
SCODE CHexEdit::SetData(VARIANT* pData, long dwStartAddr)
{
SCODE result;
static BYTE parms[] =
VTS_PVARIANT VTS_I4;
InvokeHelper(0x9, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
pData, dwStartAddr);
return result;
}
void CHexEdit::AboutBox()
{
InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}