Problem with SetWindowText / setDlgItemText???

Discussion in 'MFC' started by rajeswaridvssnr, Mar 28, 2008.

  1. rajeswaridvssnr

    rajeswaridvssnr New Member

    Joined:
    Oct 24, 2006
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    Hyderabad
    I was stuck up in small issue to show a text.........

    I have tried all these alternatives....

    m_text.SetWindowText(szMsg);//m_text is edit control variable

    GetDlgItem(IDC_TEXT)->SetWindowText(szMsg)

    SetDlgItemText(IDC_TEXT,szMsg);
    m_text.SendMessage(WM_SETTEXT,NULL,(LPARAM)szMsg);

    Why SetDlgItemText, SetWindowText, SendMessage not working/not setting the text properly....


    I have a loop i need to show the text szMsg(like x of n files completed....) and i am calling another application in that loop using shellexecute which runs for 2 mins...and continues the loop....

    for the 2 rounds it is changing the text correctly for the 3rd round onwards it is not changing it...when i was testing in the debug it is changing the szMsg correctly....what do i need to do here...??any solutions!!!! I have tried sleep also.....
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice