Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用收到一条WM_ERASEBKGND消息,后面没有WM_PAINT消息。很自然,我的应用程序会擦除背景,然后就坐在那里,有一个空白窗口。
WM_ERASEBKGND
WM_PAINT
我在 Vista 下运行,但它也发生在 XP 下。我很确定这是我的错,但是我该怎么做才能使 Windows 无法正常工作?
当我使用 Spy++ 观看时,我对这些消息相当肯定。这是一个在 MSVC 2008 下编译的 C 应用程序。
不要在你的处理程序中调用BeginPaint/ 。EndPaintWM_ERASEBKGND
BeginPaint
EndPaint