Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
b2938efb
Commit
b2938efb
authored
Feb 27, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Feb 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleview: Mimick native treeview display of enumerations.
parent
54d578ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
typelib.c
programs/oleview/typelib.c
+14
-5
No files found.
programs/oleview/typelib.c
View file @
b2938efb
...
...
@@ -95,6 +95,7 @@ static const WCHAR wszDefaultValue[]
=
{
'd'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
'v'
,
'a'
,
'l'
,
'u'
,
'e'
,
'\0'
};
static
const
WCHAR
wszReadOnly
[]
=
{
'r'
,
'e'
,
'a'
,
'd'
,
'o'
,
'n'
,
'l'
,
'y'
,
'\0'
};
static
const
WCHAR
wszConst
[]
=
{
'c'
,
'o'
,
'n'
,
's'
,
't'
,
'\0'
};
void
ShowLastError
(
void
)
{
...
...
@@ -443,6 +444,7 @@ int EnumEnums(ITypeInfo *pTypeInfo, int cVars, HTREEITEM hParent)
VARDESC
*
pVarDesc
;
BSTR
bstrName
;
WCHAR
wszText
[
MAX_LOAD_STRING
];
WCHAR
wszAfter
[
MAX_LOAD_STRING
];
U
(
tvis
).
item
.
mask
=
TVIF_TEXT
|
TVIF_PARAM
;
U
(
tvis
).
item
.
cchTextMax
=
MAX_LOAD_STRING
;
...
...
@@ -462,7 +464,7 @@ int EnumEnums(ITypeInfo *pTypeInfo, int cVars, HTREEITEM hParent)
U
(
tvis
).
item
.
lParam
=
(
LPARAM
)
tld
;
memset
(
wszText
,
0
,
sizeof
(
wszText
));
AddToStrW
(
wszText
,
bstrName
);
memset
(
wszAfter
,
0
,
sizeof
(
wszAfter
)
);
if
(
pVarDesc
->
varkind
==
VAR_CONST
)
{
...
...
@@ -470,14 +472,21 @@ int EnumEnums(ITypeInfo *pTypeInfo, int cVars, HTREEITEM hParent)
VariantInit
(
&
var
);
if
(
VariantChangeType
(
&
var
,
pVarDesc
->
lpvarValue
,
0
,
VT_BSTR
)
==
S_OK
)
{
AddToStrW
(
wszText
,
wszConst
);
AddToStrW
(
wszText
,
wszSpace
);
AddToStrW
(
wszText
,
wszEquals
);
AddToStrW
(
wszText
,
wszSpace
);
AddToStrW
(
wszText
,
V_BSTR
(
&
var
));
AddToStrW
(
wszAfter
,
wszSpace
);
AddToStrW
(
wszAfter
,
wszEquals
);
AddToStrW
(
wszAfter
,
wszSpace
);
AddToStrW
(
wszAfter
,
V_BSTR
(
&
var
));
}
}
AddToTLDataStrW
(
tld
,
wszText
);
CreateTypeInfo
(
wszText
,
wszAfter
,
pVarDesc
->
elemdescVar
.
tdesc
,
pTypeInfo
);
AddToStrW
(
wszText
,
wszSpace
);
AddToStrW
(
wszText
,
bstrName
);
AddToStrW
(
wszText
,
wszAfter
);
AddToTLDataStrW
(
tld
,
bstrName
);
AddToTLDataStrW
(
tld
,
wszAfter
);
if
(
i
<
cVars
-
1
)
AddToTLDataStrW
(
tld
,
wszComa
);
AddToTLDataStrW
(
tld
,
wszNewLine
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment