This is due to the problematic message handling for WM_PAINT. See http://www.experts-exchange.com/Microsoft/Development/Q_22767210.html for more details.
The suggested solutions:
hm, it's strange - with some try and error I found it seems to have something to do with the WM_PAINT message handling:
If you
a) comment out the 'case WM_PAINT ... break;' or
b) implement a painting with 'BeginPaint(...);...EndPai
c) call 'return DefWindowProc(hwnd, msg, wparam, lparam);' in the WM_PAINT-case
the message box appears as expected ...
Unfortunateley I can't really tell you why this is - I guess it may have to do something with Windows-internal handling of invalidated regions to draw to ...

本文讨论了WM_PAINT消息处理问题及其解决方法,包括通过注释、实现绘图函数或调用默认窗口处理程序来修复问题。具体原因可能与Windows内部处理无效区域有关。
7602

被折叠的 条评论
为什么被折叠?



