Solved

Equations in static text boxes

Posted on 1999-01-16
2
217 Views
Last Modified: 2010-04-02
I'm using VC++5. I have some static text boxes that I would like to put greek letters in or superscripts or subscripts. How do I do this?

I also would like to change background colors and colors of letters in test boxes and push buttons. Can I do this in the resource editor?

Thanks!
0
Comment
Question by:dave_p
  • 2
2 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
Comment Utility
static text boxes can't do anything that fancy.  Your choice is to create your own control (possibly by subclassing the static text control) that does so, or use an RTF control.  An RTF control can do this sort of formatting, but you would have to disable it to make it act more like a static text control.
0
 
LVL 22

Expert Comment

by:nietod
Comment Utility
An RTF control allows you to specify the color of the characters in the control, so that should be no problem.

To handle the color of other controls, you need to handle the MW_CTLCOLORxxx messages (the xxx varies as there are different messages for different types of contols.)  You can handle the WM_CTLCOLORBTN message for a push button.  

Let me know if you have any questions.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now