Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ MFC
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 9-Oct-12 5:01am
Comments
Argonia at 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 at 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 at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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...
  Permalink  
Comments
thomas_wingfield at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 335
1 OriginalGriff 250
2 DamithSL 170
3 Kornfeld Eliyahu Peter 130
4 Peter Leow 95
0 OriginalGriff 7,315
1 DamithSL 5,199
2 Sergey Alexandrovich Kryukov 4,917
3 Maciej Los 4,866
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 9 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100