OSDN Git Service

2002-08-09 Lars Munch <lars@segv.dk>
authordannysmith <dannysmith>
Fri, 9 Aug 2002 02:29:57 +0000 (02:29 +0000)
committerdannysmith <dannysmith>
Fri, 9 Aug 2002 02:29:57 +0000 (02:29 +0000)
* include/commctrl.h (tagTVHITTESTINFO): Replace obsolete
struct name _TVHITTESTINFO and typedefs. Add defines for
backward compatability.
(ListView_SetExtendedListViewStyleEx): Add macro.

winsup/w32api/ChangeLog
winsup/w32api/include/commctrl.h

index 09111df..4d0bd26 100644 (file)
@@ -1,3 +1,10 @@
+2002-08-09  Lars Munch  <lars@segv.dk>
+
+       * include/commctrl.h (tagTVHITTESTINFO): Replace obsolete
+       struct name _TVHITTESTINFO and typedefs and add defines for
+       backward coapatability.
+       (ListView_SetExtendedListViewStyleEx): Add macro.
+
 2002-08-05  Danny Smith  <dannysmith@users.sourceforge.net>
 
        * include/wingdi.h (AlphaBlend,GradientFill,TransparentBlt):
index f232c20..94cad84 100644 (file)
@@ -1852,11 +1852,14 @@ typedef struct tagTVINSERTSTRUCTW {
 #define _TV_INSERTSTRUCTW tagTVINSERTSTRUCTW
 #define TV_INSERTSTRUCTW TVINSERTSTRUCTW
 #define LPTV_INSERTSTRUCTW LPTVINSERTSTRUCTW
-typedef struct _TV_HITTESTINFO {
-       POINT pt;
-       UINT flags;
-       HTREEITEM hItem;
-} TV_HITTESTINFO,*LPTV_HITTESTINFO;
+typedef struct tagTVHITTESTINFO {
+    POINT  pt;
+    UINT  flags;
+    HTREEITEM  hItem;
+} TVHITTESTINFO, *LPTVHITTESTINFO;
+#define _TV_HITTESTINFO tagTVHITTESTINFO
+#define TV_HITTESTINFO TVHITTESTINFO
+#define LPTV_HITTESTINFO LPTVHITTESTINFO
 typedef int(CALLBACK *PFNTVCOMPARE)(LPARAM,LPARAM,LPARAM);
 typedef struct _TV_SORTCB {
        HTREEITEM hParent;
@@ -2364,6 +2367,7 @@ WINBOOL WINAPI ImageList_DrawIndirect(IMAGELISTDRAWPARAMS*);
 #define TreeView_SetToolTips(w,wt) (HWND)SNDMSG((w),TVM_SETTOOLTIPS,(WPARAM)(wt),0)
 #endif
 #if (_WIN32_IE >= 0x0400)
+#define ListView_SetExtendedListViewStyleEx(w,m,s) (DWORD)SNDMSG((w),LVM_SETEXTENDEDLISTVIEWSTYLE,(m),(s))
 #define TabCtrl_HighlightItem(hwnd, i, fHighlight) SNDMSG((hwnd), TCM_HIGHLIGHTITEM, (WPARAM)i, (LPARAM)MAKELONG (fHighlight, 0))
 #define TabCtrl_SetExtendedStyle(hwnd, dw) SNDMSG((hwnd), TCM_SETEXTENDEDSTYLE, 0, dw)
 #define TabCtrl_GetExtendedStyle(hwnd) SNDMSG((hwnd), TCM_GETEXTENDEDSTYLE, 0, 0)