1. If you want to set the visiable of a control to false and re-display the control after a condition is met, you only need:
If (...) // meets certain conditions
{
GetDlgItem (IDC _...)-> ShowWindow (SW_SHOWNORMAL );
}
2. If you want to modify the application software Icon, you can replace the MFC. ico file in the res folder with the expected icon.
3. When creating an application, select "as a statically linked library" to use it without installation.
4. How to add skin to an application:
(1) Add the files "SkinMagicLib. h, SkinMagic. lib and SkinMagic. dll" to the project"
(2) Add "# include SkinMagicLib. h" to stdafx. h"
(3) In stdafx. h, add # pragma comment (lib, "SkinMagic. lib ")
(4) Add the following statement to InitInstance:
VERIFY (1 = InitSkinMagicLib (AfxGetInstanceHandle (), NULL ));
VERIFY (1 = LoadSkinFile ("corona. smf "));
AfxEnableControlContainer ();
SetDialogSkin ("Dialog ");
5. The installation package can be created using installshield. This software is silly and easy to use, as long as you follow the instructions above.