GetDlgItem(IDC_MYSTATIC)->SetWidnowText("Test");
Would '("Test")' be replaced with ("Value") ???? ..
ex... Dialog based program.. click this button and it increasses value X
by value Y... show the new varriable called Value...
??
Printable View
GetDlgItem(IDC_MYSTATIC)->SetWidnowText("Test");
Would '("Test")' be replaced with ("Value") ???? ..
ex... Dialog based program.. click this button and it increasses value X
by value Y... show the new varriable called Value...
??
If I understand your question correctly, I think you are trying to display the value of a variable in a static text control. If so, you can do like this:
int x;
CString sVal;
// manipulate the value of x
sVal.Format("%d",x);
GetDlgItem(IDC_MYSTATIC)->SetWidnowText(sVal);
...
Yes, that is what I am trying do.. thank you!