Click here to Skip to main content
15,921,156 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIs it possible to manually resize a statusbar? Pin
clintsinger4-Jul-03 11:31
clintsinger4-Jul-03 11:31 
AnswerRe: Is it possible to manually resize a statusbar? Pin
Ryan Binns4-Jul-03 15:27
Ryan Binns4-Jul-03 15:27 
QuestionSetting GetAsyncKeyState() output? Pin
S O S4-Jul-03 11:09
S O S4-Jul-03 11:09 
QuestionSome tips for my first real application in VC++ ?? Pin
konac4-Jul-03 10:42
konac4-Jul-03 10:42 
AnswerRe: Some tips for my first real application in VC++ ?? Pin
Toni784-Jul-03 11:53
Toni784-Jul-03 11:53 
GeneralRe: Some tips for my first real application in VC++ ?? Pin
conac8-Jul-03 1:09
conac8-Jul-03 1:09 
QuestionWH_CALLWNDPROC global hook not receiving messages? Pin
S O S4-Jul-03 9:57
S O S4-Jul-03 9:57 
QuestionMulti colored text in CEdit box? Pin
Sorcia4-Jul-03 9:10
Sorcia4-Jul-03 9:10 
I have a kind of *unusual* problem:
m_EditBox, and m_strText, where m_strText.GetLength = 10 (for example). Is is possible to set the text in the box so that the first 5 characters display black, while the last 5 display red? I tried this whenever I send ON_EN_CHANGE for the box:
void CTwoColorEdit::OnEditChange()<br />
{<br />
   CString text;<br />
   m_ctlFirst.GetWindowText( text ); <br />
   if ( text.GetLength() > 5 )<br />
	m_EditBox.SetTextColor(RED);<br />
   else<br />
	m_EditBox.SetTextColor(BLACK);<br />
}


The problem of course is that SetTextColor changes the color of the entire string, not just the last entered character...Is there some way of setting the color of the last updated character while leaving the text already in the box as is? Confused | :confused:

Reistance is futile...
( When < 1 OHM )
AnswerRe: Multi colored text in CEdit box? Pin
Maximilien4-Jul-03 9:20
Maximilien4-Jul-03 9:20 
GeneralRe: Multi colored text in CEdit box? Pin
adamUK4-Jul-03 9:25
adamUK4-Jul-03 9:25 
GeneralRe: Multi colored text in CEdit box? Pin
Maximilien4-Jul-03 9:47
Maximilien4-Jul-03 9:47 
AnswerRe: Multi colored text in CEdit box? Pin
adamUK4-Jul-03 9:24
adamUK4-Jul-03 9:24 
GeneralRe: Multi colored text in CEdit box? Pin
Sorcia4-Jul-03 10:58
Sorcia4-Jul-03 10:58 
Generalvc++ programming Pin
Member 3451564-Jul-03 8:40
Member 3451564-Jul-03 8:40 
QuestionHow to make a taller statusbar? Pin
clintsinger4-Jul-03 8:30
clintsinger4-Jul-03 8:30 
GeneralCSplitter and changing views. Pin
adamUK4-Jul-03 7:42
adamUK4-Jul-03 7:42 
GeneralRe: CSplitter and changing views. Pin
Ryan Binns4-Jul-03 15:33
Ryan Binns4-Jul-03 15:33 
GeneralRe: CSplitter and changing views. Pin
adamUK4-Jul-03 23:09
adamUK4-Jul-03 23:09 
QuestionWhere did my classes go? Pin
DaveE9th4-Jul-03 6:45
DaveE9th4-Jul-03 6:45 
AnswerRe: Where did my classes go? Pin
David Crow4-Jul-03 13:43
David Crow4-Jul-03 13:43 
GeneralRe: Where did my classes go? Pin
DaveE9th4-Jul-03 20:31
DaveE9th4-Jul-03 20:31 
GeneralRe: Where did my classes go? Pin
David Crow7-Jul-03 3:21
David Crow7-Jul-03 3:21 
GeneralUpdown control in a dialog box. Pin
blackmesa4-Jul-03 6:00
blackmesa4-Jul-03 6:00 
GeneralRe: Updown control in a dialog box. Pin
Michael Dunn4-Jul-03 6:35
sitebuilderMichael Dunn4-Jul-03 6:35 
GeneralRe: Updown control in a dialog box. Pin
blackmesa4-Jul-03 13:04
blackmesa4-Jul-03 13:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.