Module: wine Branch: master Commit: 6b68e8d606883929a53a341a3c00af91659ad237 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6b68e8d606883929a53a341a3c...
Author: Jacek Caban jacek@codeweavers.com Date: Wed Feb 28 03:58:18 2007 +0100
hhctrl.ocx: Added content tab window.
---
dlls/hhctrl.ocx/help.c | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-)
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 @@ 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; }