From 187271092aa7d614e860a0bec3a41c913afe5bf0 Mon Sep 17 00:00:00 2001 From: Matthew Lake Date: Sat, 8 Jul 2000 18:31:43 +0000 Subject: [PATCH] Added some missing definitions. --- include/commctrl.h | 13 +++++++++++++ include/winbase.h | 2 +- include/wingdi.h | 2 +- include/winuser.h | 1 + 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/include/commctrl.h b/include/commctrl.h index 07fc811c75b..68af84b91f4 100644 --- a/include/commctrl.h +++ b/include/commctrl.h @@ -2759,6 +2759,19 @@ typedef struct tagNMLVCACHEHINT #define PNM_CACHEHINT LPNMLVCACHEHINT #define NM_CACHEHINT NMLVCACHEHINT + +#define ListView_SetTextBkColor(hwnd,clrBk) \ + (BOOL)SendMessageA((hwnd),LVM_SETTEXTBKCOLOR,0,(LPARAM)(COLORREF)(clrBk)) +#define ListView_SetTextColor(hwnd,clrBk) \ + (BOOL)SendMessageA((hwnd),LVM_SETTEXTCOLOR,0,(LPARAM)(COLORREF)(clrBk)) +#define ListView_DeleteColumn(hwnd,col)\ + (LRESULT)SendMessageA((hwnd),LVM_DELETECOLUMN,0,(LPARAM)(INT)(col)) +#define ListView_GetColumnA(hwnd,x,col)\ + (LRESULT)SendMessageA((hwnd),LVM_GETCOLUMNA,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNA)(col)) +#define ListView_SetColumnA(hwnd,x,col)\ + (LRESULT)SendMessageA((hwnd),LVM_SETCOLUMNA,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNA)(col)) + + #define ListView_GetNextItem(hwnd,nItem,flags) \ (INT)SendMessageA((hwnd),LVM_GETNEXTITEM,(WPARAM)(INT)(nItem),(LPARAM)(MAKELPARAM(flags,0))) #define ListView_FindItem(hwnd,nItem,plvfi) \ diff --git a/include/winbase.h b/include/winbase.h index bab81ea8d3b..0ecabdf634f 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -763,7 +763,7 @@ typedef struct int nNumberOfLinks; int nFileIndexHigh; int nFileIndexLow; -} BY_HANDLE_FILE_INFORMATION ; +} BY_HANDLE_FILE_INFORMATION, *LPBY_HANDLE_FILE_INFORMATION ; typedef struct _SYSTEM_POWER_STATUS diff --git a/include/wingdi.h b/include/wingdi.h index 2492aa26396..eeae4f97afc 100644 --- a/include/wingdi.h +++ b/include/wingdi.h @@ -1187,7 +1187,7 @@ typedef VOID CALLBACK (*LINEDDAPROC)(INT,INT,LPARAM); #define ETO_OPAQUE 0x0002 #define ETO_CLIPPED 0x0004 #define ETO_GLYPH_INDEX 0x0010 -#define ETO_RTLEADING 0x0080 +#define ETO_RTLREADING 0x0080 #define ETO_IGNORELANGUAGE 0x1000 #define ASPECT_FILTERING 0x0001 diff --git a/include/winuser.h b/include/winuser.h index 64c8aa2ffa4..0d1da7905d3 100644 --- a/include/winuser.h +++ b/include/winuser.h @@ -1528,6 +1528,7 @@ typedef BOOL CALLBACK (*DRAWSTATEPROC)(HDC,LPARAM,WPARAM,INT,INT); #define BN_UNHILITE 3 #define BN_DISABLE 4 #define BN_DOUBLECLICKED 5 +#define BN_DBLCLK BN_DOUBLECLICKED /* Button states */ #define BST_UNCHECKED 0x0000 -- 2.11.4.GIT