This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
[lars@segv.dk: [PATCH] w32api commcrtl.h]
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-patches at cygwin dot com
- Date: Thu, 8 Aug 2002 11:29:11 -0400
- Subject: [lars@segv.dk: [PATCH] w32api commcrtl.h]
----- Forwarded message from Lars Munch <lars@segv.dk> -----
From: lars@segv.dk (Lars Munch)
To: cygwin@cygwin.com
Subject: [PATCH] w32api commcrtl.h
Date: Thu, 8 Aug 2002 17:16:29 +0200
Mail-Followup-To: cygwin@cygwin.com
Hi
This patch adds the ListView_SetExtendedListViewStyleEx macro and the
TVHITTESTINFO structure with backwards compability with the old naming
convention to the commctrl.h header file from the w32api package
Regards
Lars Munch
--- commctrl.h.old 2002-06-14 14:22:39.000000000 +0200
+++ commctrl.h 2002-08-08 16:58:59.000000000 +0200
@@ -1751,11 +1751,14 @@
#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;
@@ -2257,6 +2260,7 @@
#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)
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
----- End forwarded message -----