1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
// global variables
char hlp[10000];
std::string str;
...
// somewhere inside a function
sprintf_s(hlp, "%.8f %d %02X ...", f, i, c, ...);
str += hlp;
...
sprintf_s(hlp, "%.8f %d %02X ...", f, i, c, ...);
str += hlp;
...
sprintf_s(hlp, "%.8f %d %02X ...", f, i, c, ...);
str += hlp;
// at the end of the function
SetWindowText(hOut, str.c_str());
SendMessage(hOut, EM_SCROLL, SB_BOTTOM, 0);
|