A community member has associated this post with a similar question:
Win32 HDC issue

Only moderators can edit this content.

win32 drawing issue

someone 20 Reputation points
2024-11-08T00:10:54.03+00:00

Please help me what am I doing wrong when I try to make a simple animation of a square that moves at a certain coordinate and animated using sin()

(All this in a while loop with a delay std::this_thread::sleep_for( std::chrono::milliseconds(1))) without using wm_paint )

but at moments it disappears for a millisecond and then continues to move again, nothing breaks just this blinking ... Gives the feeling that I did something wrong :/.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,651 questions
{count} votes