Commit 6b68e8d6 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

hhctrl.ocx: Added content tab window.

parent 0ecadffb
......@@ -668,6 +668,22 @@ static BOOL HH_AddHTMLPane(HHInfo *pHHInfo)
return TRUE;
}
static BOOL AddContentTab(HHInfo *info)
{
info->tabs[TAB_CONTENTS].hwnd = CreateWindowExW(WS_EX_CLIENTEDGE, WC_TREEVIEWW,
szEmpty, WS_CHILD | WS_BORDER | 0x25, 50, 50, 100, 100,
info->WinType.hwndNavigation, NULL, hhctrl_hinstance, NULL);
if(!info->tabs[TAB_CONTENTS].hwnd) {
ERR("Could not create treeview control\n");
return FALSE;
}
ResizeTabChild(info, info->tabs[TAB_CONTENTS].hwnd);
ShowWindow(info->tabs[TAB_CONTENTS].hwnd, SW_SHOW);
return TRUE;
}
/* Viewer Window */
static LRESULT Help_OnSize(HWND hWnd)
......@@ -840,6 +856,9 @@ static BOOL CreateViewer(HHInfo *pHHInfo)
if (!HH_AddHTMLPane(pHHInfo))
return FALSE;
if (!AddContentTab(pHHInfo))
return FALSE;
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment