Print Page | Close Window

Skin doesn't apply...

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=11272
Printed Date: 15 November 2024 at 8:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Skin doesn't apply...
Posted By: ddlittle
Subject: Skin doesn't apply...
Date Posted: 01 July 2008 at 6:43pm
I have an app that checks for some pre-requisites in CWinApp:InitInstance(), and if it doesn't find them, it tells the user via AfxMessageBox().  The problem is that the skin isn't applied - i'm using Vista/black - and the message comes up in the old blue style.
 
I tried moving some of the code to the frame, but by then it's too late, so I got a (non-XTP-related) crash.
 
If the Init function completes, the skins are all applied.  Any ideas how to apply a skin to a messagebox - without having to write my own modal dlg??
 
thanks!
 
- David



Replies:
Posted By: Oleg
Date Posted: 02 July 2008 at 1:16am
Hi,
 
Have to work. Are you sure you already load skin in this point ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ddlittle
Date Posted: 02 July 2008 at 9:49am
No, the LoadSkin hasn't been called yet, because the CWndFrameWnd hasn't been created yet.  The message box appears, followed by a dialog before the frame gets created.  Once the frame is created and the skin loaded, then everything's perfect.  it's just the first two boxes appear in the default Windows style.
 
This code was written 10 years back by some long-gone programmer, and I hate to rewrite it, but if that's the solution, then I will.
 
 


Posted By: Oleg
Date Posted: 02 July 2008 at 10:07am
Hi,
Just move LoadSkin from CWndFrameWnd  to InitInstance.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net