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.
This commit is contained in:
parent
6117fc4165
commit
5f9fd77db3
|
@ -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;
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue