CListWnd

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

Tamian
a lesser mummy
a lesser mummy
Posts: 54
Joined: Wed Nov 12, 2003 2:41 pm

CListWnd

Post by Tamian » Tue Jun 01, 2004 12:28 am

Have CListWnd working fine, but how would I go about adding data in more then a single column?

I am assuming it is via CListWnd::AddLine(class SListWndLine const *); however SListWndLine has no members that make sense (or really any).

Also, maybe going blind or dont understand, but EQLIB_OBJECT int CListWnd::GetCurCol(void)const; ... GetCurCol has no offset defined (and assumign the reverse Set Cur Col maybe?)

Any info would be great .. search turns up nothing that can find helpful.

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Tue Jun 01, 2004 5:38 am

CListWnd::SetItemText(int,int,class CXStr)

Tamian
a lesser mummy
a lesser mummy
Posts: 54
Joined: Wed Nov 12, 2003 2:41 pm

Post by Tamian » Tue Jun 01, 2004 6:30 am

Thanks DKAA,

Somewhere about 3 and 4 AM I figured it out .. should have asked ya earlier ...

Did find a few issues (http://macroquest2.com/phpBB2/viewtopic ... 3424#53424)

And have two other questions. I had MyListWnd->AddString(" ",yada,0,0) in for each line I wanted to add -BEFORE- the SetItemText .. I assume I could use AddLine, but SListWndLine is pretty minimal.

Should I change it to for each row that I want to add?

MySListWndLine = new SListWndLine;
MyListWnd->AddLine(MySListWndLine );

Is there any tangable benifits? Is there a way to add column info in as part of AddLine and save the multiple SetItemText calls .. or being too early in morn am I not making sense.

Second question .. how can I get it to draw the Column Seperators? I tried those functions, but to no avail .. unless there is a specific order?