🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Joe Walsh Wed, 12 Aug 1998 00:00
CListCtrl - initimage.txt (0/1)
#212
Author: 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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads