Click here to Skip to main content
15,887,450 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello!I'm just very new in MFC and C++.
I need to change view of Frame.I have CWinApp and CFrameWnd in CWinApp!!!I want change view of Window and Frame, like set background create round corners, by one word change a style of my app.How can I do it?I tried to find something in google, but that's a hard, each one link is different.
Can u help me by some tutorial or piece of code?How set different properties of Frame and App.
Thank u
Posted
Comments
Argonia 9-Oct-12 10:14am    
in what kind do you want to change the Frame ? Maybe you should use MESSAGE_MAPS and make some handler of an event and change the appearance in there?
thomas_wingfield 9-Oct-12 10:19am    
Hello Argonia!I want just set a styles for my window, like round corners or color of background, change color of top line of window, and etc.I would be great if u know some tutorials where examples with changed properties.Also I just added a button to frame and I decided to change style of buttons for my app.
I came fr om higher technologies like WinForms, Swing etc.There were more easy to change this properties of app)
Thank u for help, and sorry for my bad English
thomas_wingfield 9-Oct-12 10:21am    
Also do u know if I create own class for button, can I use by this class a lot of buttons with different options and handlers?
Sorry that so much quesations I just start learn it today)

1 solution

This is an advanced topic and the answers can fill a book.

In fact it has filled books...

You may be able to make some progress by implementing MFC themes.

You can see these in action by using the wizard to create an MFC application, with themes enabled.

Or you can try this article for starters:
A Customized Window for MFC Applications[^]

If that doesn't get you what you want, then Microsoft puts the source code for MFC in the install directories. you can copy the portions of the code that you wish to modify to your project. Repair the build errors and then customize that code.

Once you get out on the bleeding edge of development in this fashion, you'll likely be on your own. Not many people have a need to do this, so likely won't find much help. I personally haven't needed to do this in over a year and have no examples on hand.

In my applications, it's typically the doc template code I find necessary to modify, not the window frame styling.

Good luck. This isn't really a beginner topic...
 
Share this answer
 
Comments
thomas_wingfield 9-Oct-12 15:59pm    
JackDingler thanks)I saw this article and i thought it's very diffcult, that's why I asked it coz I thought somebody knows simple example))I understood.Thanks again

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900