For example, with an Edit control with ID = 12 :
int n = 20;
SetDlgItemInt(hWnd, 12, n, FALSE);
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have created a text box through CreateWindowEx and mostly understand how to. Now i'm attempting to do the same thing, but outputting text from a variable, for example.
int main
{
int x = 20
std::cout << "You have " << x << " cats\n";
return 0;
}
For example, with an Edit control with ID = 12 :
int n = 20;
SetDlgItemInt(hWnd, 12, n, FALSE);