none
Window not getting repainted RRS feed

  • Question

  • Hi! I've been experiencing this problem for some months now, and still I'm not aware of a solution, so I try here.

    I'm using Windows CE 6.0 r3 to write some applications using Visual C. It happens in more than one application that, right after it is loaded, and before the user does anything, the window is not repainted correctly. I have some threads which show some images on the window, and nothing is shown until the user clicks something on the screen. After a click the application works correctly for all the subsequent repaintings.

    Is there anyone who has already experienced anything similar?

    Thanks!

    Friday, August 13, 2010 11:08 PM

All replies

  • Threads should *NOT* be doing anything directly to any window.  Drawing should only be done from the UI thread, the thread that calls GetMessage() to process messages for the application.  While you might be able to, in some instances, make things get drawing by getting the HDC of a window and drawing directly, that's wrong.  Desktop Windows is fairly forgiving of this sort of thing, but Windows CE is not.

    Paul T.

    Monday, August 16, 2010 7:18 PM