How to create skin or theme for the dialog? |
Post Reply |
Author | |
kunbian
Newbie Joined: 14 June 2012 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 15 June 2012 at 12:22am |
hey, everyone, now our VC project use xtreme framework, we export .ui file from skinbuilder that created by ourself instead of some default images, it is our skin. I LoadSkin in CMainFrame::Oncreate, it is a exe program, and all the others ui dlls has the same skin with the main application, all the exe and dlls has include "XTToolkitPro.h" in its stdafx.h, now it works well. ui dll is load on demond. Now i want to change the skin of the dialog which derived from CDialog, belongs the ui dll not main exe application, I read the codejock SkinControls demo, it can work well, the DialogSample has the different theme in this demo, I porting the codes to my project, but can not work with nothing happened, i try some ways, for example, i Load the same skin file in this ui MFC dll on the InitInstance, and porting the demo code to the specific Dialog on the OninitDialog method, when i call the dialog, it will display the theme, but in seconds later, it disappeared and left is the dialog template original rc ui. So the question is how to custome skin or theme for the specific popup dialogs and its sub-controls, e.g. default CButtons? who can tell me why? sorry of my bad english Thank you, all. |
|
kunbian
Newbie Joined: 14 June 2012 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Has anybody here know the reason? If need codes, i can support
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |