Off the top of my head. I think this would work, but I haven't test it
out yet.

void LstGetAttr(ListPtr lstP, ListAttrType *attr)
{
  MemMove(attr, &(lstP->attr), sizeof(ListAttrType));
}

void sampleFunc()
{
  ListPtr lstP;
  ListAttrType attr;

  lstP = GetObjectPtr(list_Resource_ID);
  LstGetAttr(lstP, &attr);
}


Ian Alston wrote:
> 
> Does anyone out there know how to set the attributes of a list?
> 
> I know there is a ListAttrType, but there is no pointer to it, so I'm not
> sure how reference it to an existing list.
> 
> Sample Code pleeeese!!
> Ian

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to