From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ren Hoek To: cygwin@cygwin.com Cc: ren@arak.cs.hro.nl Subject: 1.1.8-2: TVINSERTSTRUCT & TVITEM missing Date: Sun, 11 Feb 2001 15:59:00 -0000 Message-id: <20010211235908.CB6467C17@hirogen.kabelfoon.nl> X-SW-Source: 2001-02/msg00558.html 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