Solved

Equations in static text boxes

Posted on 1999-01-16
2
237 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
ID: 1184377
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
ID: 1184378
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

774 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