Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - How to Skin Control Panel?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to Skin Control Panel?

 Post Reply Post Reply
Author
Message
prashant View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 February 2007
Location: India
Status: Offline
Points: 165
Post Options Post Options   Thanks (0) Thanks(0)   Quote prashant Quote  Post ReplyReply Direct Link To This Post Topic: How to Skin Control Panel?
    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?
Back to Top
prashant View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 February 2007
Location: India
Status: Offline
Points: 165
Post Options Post Options   Thanks (0) Thanks(0)   Quote prashant Quote  Post ReplyReply Direct Link To This Post 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


Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2009 at 4:15am
Hi,
 
SkinFramework can't skin anything in another process.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
prashant View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 February 2007
Location: India
Status: Offline
Points: 165
Post Options Post Options   Thanks (0) Thanks(0)   Quote prashant Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2009 at 6:03am
Is there any way to add Skin hook to newly executed process?
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 18 February 2009 at 5:37am
Perhaps you can open the Control panel item via a DLL call?
PokerMemento - http://www.pokermemento.com/
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.