Set WS_EX_TOOLWINDOW in a tooltip's dwExStyle.

This commit is contained in:
Ori Pessach 2002-02-08 17:03:57 +00:00 committed by Alexandre Julliard
parent 20a4cc3116
commit 023b1aae0a
1 changed files with 4 additions and 0 deletions

View File

@ -2114,11 +2114,15 @@ static LRESULT
TOOLTIPS_NCCreate (HWND hwnd, WPARAM wParam, LPARAM lParam)
{
DWORD dwStyle = GetWindowLongA (hwnd, GWL_STYLE);
DWORD dwExStyle = GetWindowLongA (hwnd, GWL_EXSTYLE);
dwStyle &= 0x0000FFFF;
dwStyle |= (WS_POPUP | WS_BORDER | WS_CLIPSIBLINGS);
SetWindowLongA (hwnd, GWL_STYLE, dwStyle);
dwExStyle |= WS_EX_TOOLWINDOW;
SetWindowLongA (hwnd, GWL_EXSTYLE, dwExStyle);
return TRUE;
}