problem in finishedframebase.h

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Locked
adrian_007
Posts: 32
Joined: 2006-03-06 10:54
Location: Poland

problem in finishedframebase.h

Post by adrian_007 » 2006-05-29 16:52

hi. i have some problems with adding icons to tabs - ex in finished frames :/

i have something like that

Code: Select all

template<class>
class FinishedFrameBase : public MDITabChildWindowImpl<T>, public StaticFrame<T>,
	protected FinishedManagerListener
and what i think, i should add some ints in template [i need it, 2 things to add]... BUT in end of file i have problem with this:

Code: Select all

template <class>
int FinishedFrameBase<T>::columnIndexes[] = { COLUMN_DONE, COLUMN_FILE, COLUMN_PATH, COLUMN_NICK, COLUMN_HUB, COLUMN_SIZE, COLUMN_SPEED, COLUMN_CRC32 };

template <class>
int FinishedFrameBase<T>::columnSizes[] = { 100, 110, 290, 125, 80, 80, 80, 90 };
i don't need to add anything to template, but if i don't add something, i have errors :/
so, i can do it in this way? or a need to rebuild finished frames or something like that? :P
ps. i tried copy frames from 0.674 but it doesn't work :/ i have many errors with LRESULT's :\
please help me with it ;)

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2006-05-30 16:41

Where are you pulling the icon from? Can't you use the same icon as used for the frame icon? It looks like GetWndClassInfo() might give you access to the resource ID for the icon.

adrian_007
Posts: 32
Joined: 2006-03-06 10:54
Location: Poland

Post by adrian_007 » 2006-05-31 05:45

i get that icons from resource ;) i have temporary code for this - one icon for 2 frames - when someone have better idea for this, i correct code :)

Locked