oleview: Fixed idl files generation with dual interfaces.
This commit is contained in:
parent
d19f1673ae
commit
4e51c02224
|
@ -120,6 +120,7 @@ typedef struct
|
||||||
WCHAR wszInsertAfter[MAX_LOAD_STRING];
|
WCHAR wszInsertAfter[MAX_LOAD_STRING];
|
||||||
INT idlLen;
|
INT idlLen;
|
||||||
BOOL bPredefine;
|
BOOL bPredefine;
|
||||||
|
BOOL bHide;
|
||||||
}TYPELIB_DATA;
|
}TYPELIB_DATA;
|
||||||
|
|
||||||
extern GLOBALS globals;
|
extern GLOBALS globals;
|
||||||
|
|
|
@ -758,8 +758,10 @@ static void AddIdlData(HTREEITEM hCur, TYPELIB_DATA *pTLData)
|
||||||
{
|
{
|
||||||
tvi.hItem = hCur;
|
tvi.hItem = hCur;
|
||||||
SendMessage(typelib.hTree, TVM_GETITEM, 0, (LPARAM)&tvi);
|
SendMessage(typelib.hTree, TVM_GETITEM, 0, (LPARAM)&tvi);
|
||||||
AddToTLDataStrW(pTLData, wszNewLine);
|
if(!((TYPELIB_DATA*)(tvi.lParam))->bHide) {
|
||||||
AddToTLDataStrWithTabsW(pTLData, ((TYPELIB_DATA*)(tvi.lParam))->idl);
|
AddToTLDataStrW(pTLData, wszNewLine);
|
||||||
|
AddToTLDataStrWithTabsW(pTLData, ((TYPELIB_DATA*)(tvi.lParam))->idl);
|
||||||
|
}
|
||||||
hCur = TreeView_GetNextSibling(typelib.hTree, hCur);
|
hCur = TreeView_GetNextSibling(typelib.hTree, hCur);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -788,7 +790,8 @@ static void AddPredefinitions(HTREEITEM hFirst, TYPELIB_DATA *pTLData)
|
||||||
{
|
{
|
||||||
tvi.hItem = hCur;
|
tvi.hItem = hCur;
|
||||||
SendMessage(typelib.hTree, TVM_GETITEM, 0, (LPARAM)&tvi);
|
SendMessage(typelib.hTree, TVM_GETITEM, 0, (LPARAM)&tvi);
|
||||||
if(((TYPELIB_DATA*)(tvi.lParam))->bPredefine)
|
if(((TYPELIB_DATA*)(tvi.lParam))->bPredefine &&
|
||||||
|
!((TYPELIB_DATA*)(tvi.lParam))->bHide)
|
||||||
{
|
{
|
||||||
AddToStrW(wszText, wszSemicolon);
|
AddToStrW(wszText, wszSemicolon);
|
||||||
AddToTLDataStrWithTabsW(pTLData, wszText);
|
AddToTLDataStrWithTabsW(pTLData, wszText);
|
||||||
|
@ -1164,6 +1167,8 @@ static int PopulateTree(void)
|
||||||
CreateInterfaceInfo(pTypeInfo, pTypeAttr->cImplTypes, bstrName,
|
CreateInterfaceInfo(pTypeInfo, pTypeAttr->cImplTypes, bstrName,
|
||||||
bstrData, ulHelpContext, pTypeAttr, tld);
|
bstrData, ulHelpContext, pTypeAttr, tld);
|
||||||
tld->bPredefine = TRUE;
|
tld->bPredefine = TRUE;
|
||||||
|
if(pTypeAttr->wTypeFlags & TYPEFLAG_FDUAL)
|
||||||
|
tld->bHide = TRUE;
|
||||||
AddToStrW(wszText, wszTKIND_DISPATCH);
|
AddToStrW(wszText, wszTKIND_DISPATCH);
|
||||||
AddToStrW(wszText, bstrName);
|
AddToStrW(wszText, bstrName);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue