Seeing a lot of people complaining that the Skinmagic compilation connection is not, I am fortunate to find a dynamic library that can be used properly through compilation, and share it with you.
The package class is CSKINMAGIC, defined in the skinmagic.h file.
Take SkinMagic as an example in the MFC multi-document program, explaining CSKINMAGIC, assumes that the existing MFC multi-document program project is available, and the use steps are as follows:
1. Add a #include "skinmagic.h" in skinmagicWrapper.h;
2. Add a member in class cskinmagicwrapperapp:
Cskinmagic m_skin;
3. Bool cskinmagicwrapperapp :: InitInstance () Add
m_skin.loadskinfile ("corona.smf"); // Load skin file
m_skin.setwindowskin (pmaInframe-> m_hwnd, "mainframe"); // Setting the frame window skin
m_skin.setdialogskin ("DIALOG"); // Settings dialog window skin
4. Add in the int cchildframe :: oncreate (lpcreatestruct lpcreatestruct) function
THEAPP.M_SKIN.SETWINDOWINSKIN (M_HWND, "MainFrame); Add before the oncreate function
Extern cskinmagicwrapperapp theApp;
Congratulations, your MFC multi-document program has been renewed.
Because MDI wants to process the frame window, you have to handle ChildFrame and open files, About and other dialogs, so there are so many steps, if your program only uses the dialog, then it is very simple, just need to be in xxxapp :: InitInstance ) Add the following two lines to OK
m_skin.loadskinfile ("corona.smf"); // Load skin file
m_skin.setdialogskin ("DIALOG"); // Setting the dialog window Skin (all dialogs)
Note: The system or current directory must have SkinMagicTrial.dll and corona.smf files, if you can't find SkinMagicTrial.dll and skin files, then the program can also run, but it is still the standard interface of Windows.
You can use SkinMagicBuilder.exe to edit your skin files yourself.
Of the official website
Http://www.appspeed.com Download Skinmagic SDK and SkinmagicBuilder.
Please download this example source code here:
http://www.nhvideo.net/codes/skinmagicwrapper.rar (no SDK required)