🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: att.lang.c++
Article #212

CListCtrl - initimage.txt (0/1)

#212
From: Joe Walsh
Date: Wed, 12 Aug 1998 00:00
43 lines
1678 bytes
Hello there,

At the moment I am trying to include a List control in my dbsee app.
DBsee is a C++ Database Code Generator.

I'm not having a lot of success.

If anyone could give me any help at all, I would be very greatful.

The following is the code which I have included in my form events.

MEMBERS
   CListCtrl MyList;
   CRect MyRect;
HEADER
   #define OCX_LIST 1001
INIT
   MyRect.SetRect(10, 10, 360, 260);

   MyList.InsertColumn(0,"File Name", LVCFMT_LEFT, 192);
   MyList.InsertColumn(1,"Size in Bytes", LVCFMT_RIGHT,128);
   MyList.InsertColumn(2,"Created", LVCFMT_CENTER, 128);
   MyList.InsertColumn(3,"Last Modified", LVCFMT_CENTER,128);

   InitializeSystemImageList("c:\\");

   MyList.SetImageList(&m_smallImageList, LVSIL_SMALL); 
   MyList.SetImageList(&m_largeImageList, LVSIL_NORMAL);

   MyList.Create( WS_CHILD | WS_VISIBLE | LVS_REPORT | LVS_ICON,
                  MyRect,
                  this,
                  OCX_LIST );
DESTRUCTOR
   delete MyList;
   delete MyRect;
   m_smallImageList.Detach();
   m_largeImageList.Detach();


I have attached InitImage.Txt which includes the code for the global
function InitializeSystemImageList().
m_smallImageList & m_largeImageList are defined as global.
Technical Details
Message-ID: <35d1ba61.28224935@news.iol.ie>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d4ba,6ee7fcf348dde8d7,start
X-Google-Attributes: gid10d4ba,public
From: jwalsh@fallonconsultants.com (Joe Walsh)
Subject: CListCtrl - initimage.txt (0/1)
Date: 1998/08/12
Message-ID: <35d1ba61.28224935@news.iol.ie>
X-Deja-AN: 380435174
Organization: C.I.S. Eireann
Reply-To: jwalsh@_remove_fallonconsultants.com
Newsgroups: att.lang.c++