hhctrl.ocx: Added content tab window.
diff --git a/dlls/hhctrl.ocx/help.c b/dlls/hhctrl.ocx/help.c
index 5d4e750..3c629a9 100644
--- a/dlls/hhctrl.ocx/help.c
+++ b/dlls/hhctrl.ocx/help.c
@@ -668,6 +668,22 @@
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 @@
if (!HH_AddHTMLPane(pHHInfo))
return FALSE;
+ if (!AddContentTab(pHHInfo))
+ return FALSE;
+
return TRUE;
}