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

C / C++ / MFC

 
GeneralRe: HELP!!! Pin
Joaquín M López Muñoz29-Aug-02 7:26
Joaquín M López Muñoz29-Aug-02 7:26 
GeneralRe: HELP!!! Pin
Nitron29-Aug-02 7:54
Nitron29-Aug-02 7:54 
Generalforcing window repaint Pin
TimWallace29-Aug-02 7:14
TimWallace29-Aug-02 7:14 
GeneralRe: forcing window repaint Pin
Joaquín M López Muñoz29-Aug-02 7:17
Joaquín M López Muñoz29-Aug-02 7:17 
GeneralRe: forcing window repaint Pin
lucy29-Aug-02 9:59
lucy29-Aug-02 9:59 
GeneralLexical matching - wildcard type Pin
Sayan Mukherjee29-Aug-02 5:54
Sayan Mukherjee29-Aug-02 5:54 
GeneralRe: Lexical matching - wildcard type Pin
Chris Losinger29-Aug-02 6:04
professionalChris Losinger29-Aug-02 6:04 
GeneralEN_CHANGE and CEdit, simple question Pin
ns29-Aug-02 5:46
ns29-Aug-02 5:46 
A dilemma:

I want a "done" button to be disabled until the user adds omething to the CEdit. Fine. I trapped the EN_CHANGE, and the button comes alive as soon as the user enters anything. Problem is, I dont ever want this field to be empty, and if after typing a letter in, the user goes back and deletes it, my "done" button is still enabled. It should only be enabled when theres something in the CEdit.
How do I do this?

======================================================================================
My other tactic was to test when the "done' was pressed like this(below) but it freezes my program and doesnt give me a chance to enter something into the CEdit:

void CDlgMineName::OnButtonDone() 
{

	CString UserEntry;

	m_editMineName.GetWindowText(UserEntry);

	while (UserEntry =="")
	{
		m_editMineName.SetFocus();

		m_editMineName.GetWindowText(UserEntry);<code>why cant I enter anything here? </code>
	}

	It freezes  and I have to kill it from task manager. Is it obvious why ?


Thanks,
ns
GeneralRe: EN_CHANGE and CEdit, simple question Pin
Tomasz Sowinski29-Aug-02 5:49
Tomasz Sowinski29-Aug-02 5:49 
GeneralRe: EN_CHANGE and CEdit, simple question Pin
ns29-Aug-02 5:58
ns29-Aug-02 5:58 
GeneralRe: EN_CHANGE and CEdit, simple question Pin
Tomasz Sowinski29-Aug-02 6:07
Tomasz Sowinski29-Aug-02 6:07 
GeneralRe: EN_CHANGE and CEdit, simple question Pin
Roger Allen29-Aug-02 5:56
Roger Allen29-Aug-02 5:56 
GeneralVery cool! Pin
ns29-Aug-02 6:03
ns29-Aug-02 6:03 
GeneralRe: EN_CHANGE and CEdit, simple question Pin
Sayan Mukherjee29-Aug-02 6:22
Sayan Mukherjee29-Aug-02 6:22 
GeneralExcel locks up Pin
Zizilamoroso29-Aug-02 5:28
Zizilamoroso29-Aug-02 5:28 
QuestionCan Visual C++ (6.0) print the whole List Box contents? Pin
Anonymous29-Aug-02 5:09
Anonymous29-Aug-02 5:09 
GeneralTimer IDs Pin
JohnnyG29-Aug-02 4:39
JohnnyG29-Aug-02 4:39 
GeneralRe: Timer IDs Pin
Chris Losinger29-Aug-02 4:42
professionalChris Losinger29-Aug-02 4:42 
GeneralRe: Timer IDs Pin
Tomasz Sowinski29-Aug-02 4:45
Tomasz Sowinski29-Aug-02 4:45 
GeneralRe: Timer IDs Pin
JohnnyG29-Aug-02 4:45
JohnnyG29-Aug-02 4:45 
GeneralCRecordView has no DoModal function Pin
gate7ole29-Aug-02 3:51
gate7ole29-Aug-02 3:51 
GeneralRe: CRecordView has no DoModal function Pin
Tomasz Sowinski29-Aug-02 4:14
Tomasz Sowinski29-Aug-02 4:14 
GeneralCRecordView has no DoModal function Pin
Anonymous29-Aug-02 3:51
Anonymous29-Aug-02 3:51 
GeneralRedistribution question Pin
ns29-Aug-02 2:36
ns29-Aug-02 2:36 
GeneralRe: Redistribution question Pin
Tomasz Sowinski29-Aug-02 2:54
Tomasz Sowinski29-Aug-02 2:54 

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.