From: Gé van Geldorp Date: Mon, 26 Dec 2005 22:56:31 +0000 (+0000) Subject: Sync to Wine-0_9_4: X-Git-Tag: backups/expat-rbuild@40467~791 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=5fccaf46f0cb012faf24ec943a1266b8ee49d70c Sync to Wine-0_9_4: Dmitry Timoshkov - comctl32: Add a test for the initial tooltip window style settings, make it pass under Wine. Eric Pouech - comctl32: Fixed (harmless) typo. svn path=/trunk/; revision=20345 --- diff --git a/reactos/lib/comctl32/tooltips.c b/reactos/lib/comctl32/tooltips.c index 39d981b3897..c16fd7e6f02 100644 --- a/reactos/lib/comctl32/tooltips.c +++ b/reactos/lib/comctl32/tooltips.c @@ -2400,7 +2400,7 @@ TOOLTIPS_NCCreate (HWND hwnd, WPARAM wParam, LPARAM lParam) DWORD dwStyle = GetWindowLongW (hwnd, GWL_STYLE); DWORD dwExStyle = GetWindowLongW (hwnd, GWL_EXSTYLE); - dwStyle &= 0x0000FFFF; + dwStyle &= ~(WS_CHILD | /*WS_MAXIMIZE |*/ WS_BORDER | WS_DLGFRAME); dwStyle |= (WS_POPUP | WS_BORDER | WS_CLIPSIBLINGS); /* WS_BORDER only draws a border round the window rect, not the diff --git a/reactos/lib/comctl32/treeview.c b/reactos/lib/comctl32/treeview.c index 189eff592d4..2aaf41e2a4e 100644 --- a/reactos/lib/comctl32/treeview.c +++ b/reactos/lib/comctl32/treeview.c @@ -565,7 +565,7 @@ TREEVIEW_SendTreeviewNotify(TREEVIEW_INFO *infoPtr, UINT code, UINT action, TRACE("code:%d action:%x olditem:%p newitem:%p\n", code, action, oldItem, newItem); - ZeroMemory(&nmhdr, sizeof(NMTREEVIEWA)); + ZeroMemory(&nmhdr, sizeof(NMTREEVIEWW)); nmhdr.hdr.hwndFrom = hwnd; nmhdr.hdr.idFrom = GetWindowLongPtrW(hwnd, GWLP_ID);