qednick is correct about the WM_PAINT message processing. Try using:
pEdit = reinterpret_cast<CEdit*>(GetDlgItem(<DLG_ITEM_ID>));
pEdit->SetWindowText(theVariable);
where <DLG_ITEM_ID> is the Id assigned to the edit control.
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.