There are two functions currently do (menus):
(1) Load an EXI file (already implemented)
(2) Load the Profile file (to be implemented)
In the Profile file, there is information describing the EXI file, trying to load the EXI file when loading the profile.
The contents of the EXI file have been implemented, it pops up "Loading the EXI File dialog", there is a "Open" button in the dialog box, pop-up selection dialog, and load it to the program after the EXI file, the entire load process In the "open" button event, and this function involves excessive classes, and coupled too tight, error handling, etc. are associated with the dialog class.
How to load the code in the EXI file "Open" when loading the profile file?
After analysis, then consider the "Loading the EXI File Dialog box" directly when loading the Profile file, but let it load it automatically, automatically shut down. (Here the dialog is actually CPROPERTYSHEET)
Set a timer when the dialog is initialized
IF (m_bauto)
{
this-> showwindow (sw_hide); // This line is trying to make it hidden, but it seems to be useless
this-> settimer (auto_timer, 10, null); // Setting the timer
}
IF (nidevent == auto_timer) ontimer event
{
this-> killtimer; // only need once, delete the timer
Open (m_strexifilepath; // Open EXI file
this-> enddialog (idok); // Turn off CPROPERTYSHEET, here, I have been bothering me for a long time
}
CpropertySheet :: ONTIMER (Nidevent);