Click here to Skip to main content
15,901,505 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
It probably is, but heres what I do in the function:

void CDlgMineName::OnChangeEditminename() 
{


	m_buttonminename.EnableWindow(TRUE);

}


If the change was of a "negative type" i.e. nothings left in the CEdit, I want to EnableWindow(FALSE), so should I do a GetWindowText in this event and see if its empty?

void CDlgMineName::OnChangeEditminename() 
{
        CString abc;
        m_myEdit.GetWindowText(abc);
        if(abc=="")
        {
            m_buttonminename.EnableWindow(FALSE);
         }
         else
         {
	    m_buttonminename.EnableWindow(TRUE);
          }

}


What do you think about this? Too contrived?

Thanks,
nsSmile | :)
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 
GeneralRe: Redistribution question Pin
Stephane Rodriguez.29-Aug-02 3:21
Stephane Rodriguez.29-Aug-02 3:21 
GeneralRe: Redistribution question Pin
Tomasz Sowinski29-Aug-02 3:26
Tomasz Sowinski29-Aug-02 3:26 

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.