Use the same logic for creating the pages of this book control as for all the other ones and keep only wxTreebook-specific "depth" and "expanded" nodes handling in this class.