In this example, when a folder object is closed, we will zero out its first view instance variable so that the next time it has a first view opened, we can keep track of that.
SOM_Scope BOOL SOMLINK myfold_wpClose(MYFOLDER *somSelf)
{
MYFOLDERData *somThis = MYFOLDERGetData(somSelf);
BOOL rcParentClose;
MYFOLDERMethodDebug("MYFOLDER","myfold_wpClose");
rcParentClose = parent_wpClose(somSelf); /* Call parent method first */
_setFirstViewHandle(somSelf, NULLHANDLE); /* Do our thing */
return( rcParentClose );
}