Changed MAX/MIN to max/min.
For Codeweavers.
ChangeLog entry:
*dlls/comctl32/treeview.c,commctrl.c;include/commctrl.h
Chris Morgan <[EMAIL PROTECTED]>
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.
treeview.c.gz
Index: dlls/comctl32/commctrl.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/commctrl.c,v
retrieving revision 1.30
diff -u -r1.30 commctrl.c
--- dlls/comctl32/commctrl.c 2000/09/12 23:40:40 1.30
+++ dlls/comctl32/commctrl.c 2000/09/13 00:45:03
@@ -1150,3 +1150,45 @@
{
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;
+}
Index: include/commctrl.h
===================================================================
RCS file: /home/wine/wine/include/commctrl.h,v
retrieving revision 1.61
diff -u -r1.61 commctrl.h
--- include/commctrl.h 2000/09/06 19:44:49 1.61
+++ include/commctrl.h 2000/09/13 00:45:13
@@ -3674,6 +3674,10 @@
/* type and functionality of last parameter is still unknown */
LRESULT WINAPI COMCTL32_SendNotifyEx (HWND, HWND, UINT, LPNMHDR, DWORD);
+/* Internal function */
+HWND COMCTL32_CreateToolTip (HWND);
+
+
#ifdef __cplusplus
}
#endif