Drawing problem does ShowWindow(hWnd, SW_HIDE) automatically invalidate rectangles?

Posted by wk1989 on Stack Overflow See other posts from Stack Overflow or by wk1989
Published on 2010-04-14T18:16:29Z Indexed on 2010/04/14 18:33 UTC
Read the original article Hit count: 157

Filed under:
|
|

Hello, I'm running into a problem where, I have a Window that contains a child window. The child window contains another child window where a video is playing using Windows Media Player. Whenever I do call ShowWindow (hWnd, SW_HIDE) on the parent Window and paint over the entire surface, the region occupied by the grand-child window (where the video was playing) is not overridden. I used spy++ and found that that region which was not overridden was set to hidden BEFORE the repaint occurs.

I monitored the hwnd of the grand-child window and it did not seem to receive any WM_EraseBKGND or WM_NCPAINT messages. Does this mean the area it occupied had not been invalidated and therefore could not be drawn over? I'm new to winforms.

Thanks!

© Stack Overflow or respective owner

Related posts about winforms

Related posts about hwnd