开发者

How do I detect when modal title bar is done blinking with WndProc?

开发者 https://www.devze.com 2023-02-21 10:27 出处:网络
I have a VB.net MDI app that contains a modal window (normal window shown as modal).I have a custom title bar button that disappears if the user clicks outside the modal area.

I have a VB.net MDI app that contains a modal window (normal window shown as modal). I have a custom title bar button that disappears if the user clicks outside the modal area.

Normally, clicking off a modal will cause the system to beep and then flash the titl开发者_运维问答e bar of the modal window.

I want to know how to detect when the flashing is complete (using WndProc if possible) so I can redraw the custom button.

Anyone know how this could be done? Thanks!


It's been a while, but I believe your window should be receiving a WM_NCPAINT message when the frame needs to repaint.


It turns out that I had the WndProc(m) line in the wrong spot.

0

精彩评论

暂无评论...
验证码 换一张
取 消