The expand or collapse state is read from a PT_BINARY property on the view message with property tag PR_VD_COLLAPSE_STATE (0x7003). The binary bytes are then simply set into the current MAPI table using the IMAPITable::SetCollapseState method. For a newly created view, this property should be set to NULL.