Use cpl_frameset_get_position() in cpl >= 6.3