20 Dec
2003
20 Dec
'03
4:15 a.m.
On Fri, 2003-12-19 at 21:42, bulia byak wrote:
There's a really simple way of doing this. Every desktop has an integer 'key' associated with it, that you can use to match against SPItemView::key.
Does not work: if child is an SPItem then child->display->arenaitem->key exists but is always 0. Or am I doing something wrong?
No, use child->display->key ... or, actually, since as I said child->display is the head of a linked list:
SPItemView *iv; NRArenaItem *arenaitem;
arenaitem = NULL; for ( iv = child->display ; iv ; iv = iv->next ) { if ( iv->key == dkey ) { arenaitem = iv->arenaitem; break; } }
.. then use arenaitem as appropriate. (dkey being the dkey you got from the SPDesktop, of course)
-mental