There is a Win32 application: a window and a single TextBox. In the while(GetMessage(...
some event is checked. If it is set, the text is updated in the TextBox
(taken from the Mapped area, but this, I think, does not matter)).
The problem is this: if the window is in the background, then the update does not occur. As soon as I click on the window, everything is updated normally. Question: Is it possible to make it happen always, even in the background.
I tried at the end of the while(GetMessage(...
(already after TranslateMessage
and DispatchMessage
)) to send WM_USER
to myself, but it did not help.
UpdateWindow
tried? - Duracellif (GetForegroundWindow() != ваш_hwnd)UpdateWindow(ваш_HWND)
- Duracell