how to call windows paint event from child thread

Posted by RAJ K on Stack Overflow See other posts from Stack Overflow or by RAJ K
Published on 2011-01-13T09:38:14Z Indexed on 2011/01/13 10:53 UTC
Read the original article Hit count: 187

If I am wrong then please correct me as I am new in this. I have one thread which display image captured from webcam on a windows created using CreateWindowEx() function. Now when i execute my program I can see that my paint code (in WindowProc()) in never reached (called InvalidateRect() from child thread to redraw), checked using breakpoint.

Actually frame capture and display is being done in thread and I think because its in child thread and Window is in Main thread that is why its not able to call paint event.

Can you help me on this

© Stack Overflow or respective owner

Related posts about multithreading

Related posts about visual-studio-2010