Solution: message box is hide behind window unless pressing ALT

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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(...);...EndPaint();' or
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 ...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值