Answer the question
In order to leave comments, you need to log in
How to update the text displayed by TextOut on WinAPI?
I am writing an application on WinAPI, I need to display text depending on the variable, initially it is empty and the text "Waiting" is displayed, the button is pressed and the image is selected, filePath becomes non-empty and now I need to display the text "Waiting for image", but how?
..
switch (message)
{
case WM_PAINT:
hdc = BeginPaint(hWnd, &ps);
if(!filePath)
TextOut(hdc, 160, 20, L"Ожидание изображения", 21);
else
TextOut(hdc, 170, 20, L"Обработка", 10);
break;
...
//тут WM_COMMAND в зависимости от которого меняется filePath
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question