Skip to content
Snippets Groups Projects
Commit 5f9fd77d authored by Chris Morgan's avatar Chris Morgan Committed by Alexandre Julliard
Browse files

Merged main Wine changes into Corel's treeview control rewritten by

Serge Ivanov and Andrew Lewycky.  Fixed item focus behavior to match
Windows.  Fixed item selection when un/expanding items.  Implemented
WM_SETREDRAW.  Added Corel's COMCTL32_CreateToolTip() helper function
to commctrl.c.
parent 6117fc41
Branches
Tags
No related merge requests found
......@@ -7,6 +7,9 @@
*
*/
#ifndef __WINE_COMCTL32_H
#define __WINE_COMCTL32_H
extern HMODULE COMCTL32_hModule;
/* Property sheet / Wizard */
......@@ -62,3 +65,7 @@ extern HMODULE COMCTL32_hModule;
#define IDT_CHECK 401
/* Internal function */
HWND COMCTL32_CreateToolTip (HWND);
#endif /* __WINE_COMCTL32_H */
......@@ -1150,3 +1150,45 @@ VOID WINAPI InitMUILanguage (LANGID uiLang)
{
COMCTL32_uiLang = uiLang;
}
/***********************************************************************
* COMCTL32_CreateToolTip [NOT AN API]
*
* Creates a tooltip for the control specified in hwnd and does all
* necessary setup and notifications.
*
* PARAMS
* hwndOwner [I] Handle to the window that will own the tool tip.
*
* RETURNS
* Success: Handle of tool tip window.
* Failure: NULL
*/
HWND
COMCTL32_CreateToolTip(HWND hwndOwner)
{
HWND hwndToolTip;
hwndToolTip = CreateWindowExA(0, TOOLTIPS_CLASSA, NULL, 0,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT, hwndOwner,
0, 0, 0);
/* Send NM_TOOLTIPSCREATED notification */
if (hwndToolTip)
{
NMTOOLTIPSCREATED nmttc;
nmttc.hdr.hwndFrom = hwndOwner;
nmttc.hdr.idFrom = GetWindowLongA(hwndOwner, GWL_ID);
nmttc.hdr.code = NM_TOOLTIPSCREATED;
nmttc.hwndToolTips = hwndToolTip;
SendMessageA(GetParent(hwndOwner), WM_NOTIFY,
(WPARAM)GetWindowLongA(hwndOwner, GWL_ID),
(LPARAM)&nmttc);
}
return hwndToolTip;
}
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment