2,782 questions
If your edit control has an ID, then consider the SetDlgItemInt function.
Or try this: SetWindowTextA( hText, std::to_string( cxScreen ).c_str( ) ).
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello.
I have a problem with such thing.
Output is as show at the bottom of page.
Can anyone know how to show text inside the edit window as number? (and how to get a number from window as text)
Help pages on the internet are not readable.
The output is something like "˙ĚĚĚĚĚĚĚĚĚĚĚĚ"
int cxScreen, cyScreen;
cxScreen = GetSystemMetrics(SM_CXSCREEN);
char str_ll[20];// = std::to_string(cxScreen);
IntToChar(cxScreen,&str_ll[0]);
SetWindowTextA(hText,str_ll);
If your edit control has an ID, then consider the SetDlgItemInt function.
Or try this: SetWindowTextA( hText, std::to_string( cxScreen ).c_str( ) ).