Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Skinning of a PropertySheet
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Skinning of a PropertySheet

 Post Reply Post Reply
Author
Message
Mantus View Drop Down
Newbie
Newbie


Joined: 18 February 2008
Location: Germany
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mantus Quote  Post ReplyReply Direct Link To This Post Topic: Skinning of a PropertySheet
    Posted: 18 February 2008 at 9:06am
Hello,
I've got a PropertyPage (CPropertyPage) with several PropertySheets und a Menu (CMenu)  The PropertyPage is called directly within the InitInstance Method of the Application, therefore no MainFrame Class in the App.

I've tried the to skin the application with the Office2007  Skin but on different ways but wasn't fully successful.
If i place the LoadSkin call in the Constructor of the CPropertyPage derived class or in the InitInstance of the CWinApp derived class, the whole Window including frame is skinned but the menu isn't visible at program start. It appears in the upper left corner of the program frame if i hover over it and destroys the layout.

If i place the LoadSkin call in the InitDialog of the CPropertyPage derived class, the Menu is shown correctly but only the PropertySheets are skinned, not the PropertyPage and the program frame.

So the first approach seems to be more promising but what can i do to make the menu fully visible at the right place.

Best Regards
   
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 18 February 2008 at 9:51am
Hello,
 
Its right. SkinFramework doesn't support Application menus.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Mantus View Drop Down
Newbie
Newbie


Joined: 18 February 2008
Location: Germany
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mantus Quote  Post ReplyReply Direct Link To This Post Posted: 18 February 2008 at 11:21am
Hi Oleg,

is there another way to draw a correct Menu in a PropertySheet and Skin/Theme it? Actually it's done with

void CMVPropertySheet::CreateMenu()
{

    pMainMenu = new CMenu();
    pMainMenu->LoadMenu(IDR_MENU1);
    SetMenu(pMainMenu);


}

and called within the InitInstance Method.

Best Regards
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 18 February 2008 at 2:41pm
Hello,
 
Sorry, only one way - use Our CommandBars with MenuBar.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.047 seconds.