This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

1.1.8-2: TVINSERTSTRUCT & TVITEM missing


Hi there,

I've been getting cygwin to compile Putty today. That's an open
source SSH client for windows.

One of the problems I came across was a missing TVINSERTSTRUCT
and TVITEM in the win32 headers. I fixed it by adding the structs
that I included at the bottom of this email. I don't know where
exactly the cygwin headers should be fixed, but I got the program
to compile with the stuff I included.

The structs were shamelessly stolen from the LccWin32 headers.

Hope you can fix it,

            Ren Hoek (ren@NOSPAM.arak.cs.hro.nl)

PS.

I was also missing the 'aclapi.h' header file in cygwin. I was
able to compile without this header file by including a define
for putty, but can this header be included in the cygwin pack?

---------------------------------------------------------------------

typedef struct tagTVITEMA {
        UINT      mask;
        HTREEITEM hItem;
        UINT      state;
        UINT      stateMask;
        LPSTR     pszText;
        int       cchTextMax;
        int       iImage;
        int       iSelectedImage;
        int       cChildren;
        LPARAM    lParam;
} TVITEMA, *LPTVITEMA;
typedef struct tagTVITEMW {
        UINT      mask;
        HTREEITEM hItem;
        UINT      state;
        UINT      stateMask;
        LPWSTR    pszText;
        int       cchTextMax;
        int       iImage;
        int       iSelectedImage;
        int       cChildren;
        LPARAM    lParam;
} TVITEMW, *LPTVITEMW;
#define TV_ITEM TVITEM
#define LPTV_ITEM       LPTVITEM
#ifdef UNICODE
#define TVITEM  TVITEMW
#define LPTVITEM LPTVITEMW
#else
#define TVITEM  TVITEMA
#define LPTVITEM LPTVITEMA
#endif
typedef struct tagTVITEMEXA {
        UINT    mask;
        HTREEITEM hItem;
        UINT    state;
        UINT    stateMask;
        LPSTR   pszText;
        int     cchTextMax;
        int     iImage;
        int     iSelectedImage;
        int     cChildren;
        LPARAM  lParam;
        int     iIntegral;
} TVITEMEXA, *LPTVITEMEXA;
typedef struct tagTVITEMEXW {
        UINT    mask;
        HTREEITEM hItem;
        UINT    state;
        UINT    stateMask;
        LPWSTR  pszText;
        int     cchTextMax;
        int     iImage;
        int     iSelectedImage;
        int     cChildren;
        LPARAM  lParam;
        int     iIntegral;
} TVITEMEXW,*LPTVITEMEXW;
typedef struct tagTVINSERTSTRUCTA {
    HTREEITEM hParent;
    HTREEITEM hInsertAfter;
    union
    {
        TVITEMEXA itemex;
        TVITEMA  item;
    } ;
} TVINSERTSTRUCTA,*LPTVINSERTSTRUCTA;
typedef struct tagTVINSERTSTRUCTW {
        HTREEITEM hParent;
        HTREEITEM hInsertAfter;
        union {
                TVITEMEXW itemex;
                TVITEMW  item;
        } ;
} TVINSERTSTRUCTW,*LPTVINSERTSTRUCTW;

#define  TVINSERTSTRUCT         TVINSERTSTRUCTW





--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]