Click here to Skip to main content
15,915,858 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How Thread Run Parallely Pin
David Crow28-Feb-06 8:10
David Crow28-Feb-06 8:10 
QuestionOpen and write in XML-Document Pin
hanno2528-Feb-06 5:16
hanno2528-Feb-06 5:16 
AnswerRe: Open and write in XML-Document Pin
David Crow28-Feb-06 5:29
David Crow28-Feb-06 5:29 
GeneralRe: Open and write in XML-Document Pin
hanno2528-Feb-06 5:43
hanno2528-Feb-06 5:43 
GeneralRe: Open and write in XML-Document Pin
David Crow28-Feb-06 5:46
David Crow28-Feb-06 5:46 
AnswerRe: Open and write in XML-Document Pin
Dominik Reichl28-Feb-06 6:21
Dominik Reichl28-Feb-06 6:21 
Questionfinishing writing symbol to stdin? Pin
9ine28-Feb-06 4:51
9ine28-Feb-06 4:51 
AnswerRe: finishing writing symbol to stdin? Pin
David Crow28-Feb-06 4:53
David Crow28-Feb-06 4:53 
GeneralRe: finishing writing symbol to stdin? Pin
9ine28-Feb-06 5:11
9ine28-Feb-06 5:11 
QuestionRe: finishing writing symbol to stdin? Pin
David Crow28-Feb-06 5:22
David Crow28-Feb-06 5:22 
AnswerRe: finishing writing symbol to stdin? Pin
9ine28-Feb-06 5:34
9ine28-Feb-06 5:34 
QuestionRe: finishing writing symbol to stdin? Pin
David Crow28-Feb-06 5:48
David Crow28-Feb-06 5:48 
AnswerRe: finishing writing symbol to stdin? Pin
9ine28-Feb-06 5:56
9ine28-Feb-06 5:56 
GeneralRe: finishing writing symbol to stdin? Pin
David Crow28-Feb-06 6:08
David Crow28-Feb-06 6:08 
GeneralRe: finishing writing symbol to stdin? Pin
PJ Arends28-Feb-06 7:38
professionalPJ Arends28-Feb-06 7:38 
QuestiononSize of CDialog Pin
ns28-Feb-06 4:48
ns28-Feb-06 4:48 
QuestionRe: onSize of CDialog Pin
David Crow28-Feb-06 4:52
David Crow28-Feb-06 4:52 
AnswerRe: onSize of CDialog Pin
ns28-Feb-06 5:01
ns28-Feb-06 5:01 
QuestionCEdit question (should be easy) Pin
RobJones28-Feb-06 4:22
RobJones28-Feb-06 4:22 
QuestionRe: CEdit question (should be easy) Pin
David Crow28-Feb-06 4:43
David Crow28-Feb-06 4:43 
AnswerRe: CEdit question (should be easy) Pin
RobJones28-Feb-06 4:49
RobJones28-Feb-06 4:49 
QuestionRe: CEdit question (should be easy) Pin
David Crow28-Feb-06 4:50
David Crow28-Feb-06 4:50 
AnswerRe: CEdit question (should be easy) Pin
RobJones28-Feb-06 6:37
RobJones28-Feb-06 6:37 
AnswerRe: CEdit question (should be easy) Pin
Dan McCormick28-Feb-06 16:28
Dan McCormick28-Feb-06 16:28 
<rant>
ES_PASSWORD - totally useless, don't know why it exists.
</rant>

I had this same problem until I found (after much digging) the easy way. Check out: CEdit::SetPasswordChar[^]

From the documentation:

Parameters

ch

Specifies the character to be displayed in place of the character typed by the user. If ch is 0, the actual characters typed by the user are displayed.


Apparently if an Edit control has ES_PASSWORD set when it is created (or subclassed or... lordy, who knows exactly when), MFC calls SetPasswordChar() with a value of '*'. ES_PASSWORD does not seem to be a true window style attribute, but can the documentation point that out in an obvious manner? Nooooo! Mad | :mad:

Anyway, see if that won't give you a cleaner solution. It's working well for us in our shop.

Just remember... Offer void where prohibited. Your mileage may vary.

Later,
Dan

Remember kids, we're trained professionals.
Don't try this at home!

GeneralRe: CEdit question (should be easy) Pin
RobJones1-Mar-06 0:45
RobJones1-Mar-06 0:45 

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.