For simplicity, all pages in the sample code are created after the tab control is successfully created in the view window. These pages will not be destroyed until the application shuts down. The first notification code is to notify the parent window that the currently selected tab is about to change. It is a good place to put code to hide the currently visible page. On the other hand, displaying the newly-selected page may be handled in the second notification code.
Tab control is a child of tab view window.
Call this function to create all pages for the tab view window. Refer to the destructor function sample in tabview.cpp file. The tab control is a child window of your view window. OnTabSelChange - hide the current visible page. OnTabSelChanging - show the newly selected page.