Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
X-Mailer: Ultrafunk Popcorn release 1.02 (08.oct.2000)
X-URL: http://www.ultrafunk.com/products/popcorn
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1
Date: Mon, 12 Feb 2001 00:59:25 +0100 (W. Europe Standard Time)
From: Ren Hoek <ren@arak.cs.hro.nl>
To: cygwin@cygwin.com
Cc: ren@arak.cs.hro.nl
Subject: 1.1.8-2: TVINSERTSTRUCT & TVITEM missing
Message-Id: <20010211235908.CB6467C17@hirogen.kabelfoon.nl>

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

