Print Page | Close Window

How to Skin Control Panel?

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=13372
Printed Date: 27 September 2024 at 11:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to Skin Control Panel?
Posted By: prashant
Subject: How to Skin Control Panel?
Date Posted: 10 February 2009 at 1:36am
Mark,

I am running "Control Panel" window through my application by giving following call:

hInstRtn = ShellExecute(hWndPim, NULL, szCmdLine, lpEA->lpCmdArg, NULL,
                  lpEA->nCmdShow);

I can see Control panel Dialog on screen but it's not skinned.

How to apply skin to this third party Dialog running through my application?



Replies:
Posted By: prashant
Date Posted: 10 February 2009 at 1:59am
For your convenience attaching modified Codejock sample application,

Sample:                          C:\Program Files\Codejock Software\MFC\Xtreme ToolkitPro v12.1.1\Samples\SkinFramework\SkinControls
File Modified:                  SkinControlsDlg.cpp
Function Modified:          OnButtonMult
     
void CSkinControlsDlg::OnButtonMult()
{
   HINSTANCE hInstRtn = NULL;
   hInstRtn = ShellExecute(this->m_hWnd, NULL, "Control.exe", "intl.cpl,,4", NULL,
                  SW_SHOWNORMAL);

    /*CDialogSample sd;
    sd.DoModal();*/
   
}

To reproduce the problem you can comile and execute attached modified source, Click on the button "Multiple Skins"
You can see Regional Settings dialog without Skin. How to apply skin to this?

Image:




uploads/20090210_015840_SkinControls.zip - uploads/20090210_015840_SkinControls.zip




Posted By: Oleg
Date Posted: 10 February 2009 at 4:15am
Hi,
 
SkinFramework can't skin anything in another process.


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


Posted By: prashant
Date Posted: 10 February 2009 at 6:03am
Is there any way to add Skin hook to newly executed process?


Posted By: mdoubson
Date Posted: 10 February 2009 at 10:28am
Hi, Prashat, you have all source of Release 13. Make some research how to add system-level hook and tell us about your results please


Posted By: Oleg
Date Posted: 10 February 2009 at 11:49am
Hi,
 
Yes, with system global hooks its possible - but most of Antivirus software will block your applicatio as virus.


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


Posted By: znakeeye
Date Posted: 18 February 2009 at 5:37am
Perhaps you can open the Control panel item via a DLL call?

-------------
PokerMemento - http://www.pokermemento.com/



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