Click here to Skip to main content
15,919,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Design Patterns : Command Pattern? Pin
Neville Franks21-Aug-06 11:24
Neville Franks21-Aug-06 11:24 
QuestionWord automation question with NO MFC Pin
great_tommy21-Aug-06 8:42
great_tommy21-Aug-06 8:42 
QuestionRun time library Pin
Waldermort21-Aug-06 7:33
Waldermort21-Aug-06 7:33 
AnswerRe: Run time library Pin
Zac Howland21-Aug-06 8:27
Zac Howland21-Aug-06 8:27 
GeneralRe: Run time library Pin
Waldermort21-Aug-06 8:52
Waldermort21-Aug-06 8:52 
AnswerRe: Run time library Pin
Chris Losinger21-Aug-06 8:32
professionalChris Losinger21-Aug-06 8:32 
QuestionProblem displaying drag image using IDropTargetHelper [modified] Pin
Justin Tay21-Aug-06 7:02
Justin Tay21-Aug-06 7:02 
QuestionCEdit : visually displaying the space character ? Pin
Maximilien21-Aug-06 5:54
Maximilien21-Aug-06 5:54 
I need to be able to display the "space" in an edit box with something visual.

I'm trying to handle the EN_UPDATE message which seems to be the one message to use because it will be also handled when pasting text in the edit box.

I'm not certain how to go from there, I cannot re-set the text to the control, but this will trigger another EN_UPDATE message, and will have an infinite loop.

BEGIN_MESSAGE_MAP(CMaxEdit, CEdit)
  ON_CONTROL_REFLECT(EN_UPDATE, OnEnUpdate)
END_MESSAGE_MAP()

void CMaxEdit::OnEnUpdate()
{
  CString s;
  GetWindowText( s );
  s.Replace( " ", "*" );

//	SetWindowText(s ); // will trigger an infinite loop.
}


any suggestions ? I could not find the appropriate google query to have some usefull links.

Thanks.

Max.




Maximilien Lincourt
Your Head A Splode - Strong Bad

AnswerRe: CEdit : visually displaying the space character ? [modified] Pin
ZaebanB21-Aug-06 6:25
ZaebanB21-Aug-06 6:25 
AnswerRe: CEdit : visually displaying the space character ? Pin
PJ Arends21-Aug-06 6:52
professionalPJ Arends21-Aug-06 6:52 
Questionregarding pdf Pin
Tara1421-Aug-06 3:52
Tara1421-Aug-06 3:52 
AnswerRe: regarding pdf Pin
benjymous21-Aug-06 4:04
benjymous21-Aug-06 4:04 
GeneralRe: regarding pdf Pin
Tara1421-Aug-06 4:12
Tara1421-Aug-06 4:12 
GeneralRe: regarding pdf Pin
bob1697221-Aug-06 8:11
bob1697221-Aug-06 8:11 
GeneralRe: regarding pdf Pin
Tara1410-Sep-06 8:22
Tara1410-Sep-06 8:22 
GeneralRe: regarding pdf Pin
bob1697210-Sep-06 17:04
bob1697210-Sep-06 17:04 
GeneralRe: regarding pdf Pin
Tara1410-Sep-06 19:21
Tara1410-Sep-06 19:21 
GeneralRe: regarding pdf Pin
bob1697211-Sep-06 4:32
bob1697211-Sep-06 4:32 
GeneralRe: regarding pdf Pin
Tara1411-Sep-06 5:17
Tara1411-Sep-06 5:17 
GeneralRe: regarding pdf Pin
Tara1412-Sep-06 22:14
Tara1412-Sep-06 22:14 
GeneralRe: regarding pdf Pin
bob1697213-Sep-06 17:48
bob1697213-Sep-06 17:48 
QuestionSystem Sutdown and Start time Pin
Kiran Pinjala21-Aug-06 3:10
Kiran Pinjala21-Aug-06 3:10 
AnswerRe: System Sutdown and Start time Pin
David Crow21-Aug-06 3:41
David Crow21-Aug-06 3:41 
AnswerRe: System Sutdown and Start time Pin
G_S21-Aug-06 3:43
G_S21-Aug-06 3:43 
AnswerRe: System Sutdown and Start time Pin
ThatsAlok21-Aug-06 19:06
ThatsAlok21-Aug-06 19:06 

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.