Write formatted text(printf style) to a MFC CEdit control, which would display the formatted text in

Posted by shan23 on Stack Overflow See other posts from Stack Overflow or by shan23
Published on 2010-03-22T12:40:40Z Indexed on 2010/03/22 12:51 UTC
Read the original article Hit count: 338

Filed under:
|
|
|

I need to display text along with values of variables in a CEdit controlled Edit Control Box. How do I do it ? Currently I'm using SetWindowText(), but that only takes a string...how do I get a formatted string to display in the edit control?

Example: printf("The answer is %d\n",ans) -> how do i print the same message in a Edit Control?

© Stack Overflow or respective owner

Related posts about mfc

Related posts about cedit