Hi,
I guess you want to use "windowed mode" on the Pocket PC. It will not work reliably.
The reasons for this has been discussed several times on the forum. Basically:
(1) If you use a thread, your graphics will overwrite the graphics from e.g. the start menu.
(2) If you don't use a thread the start menu and warning dialogs will overwrite your graphics.
(3) You can use WM_PAINT, but since some devices are double buffered it's not as easy as drawing directly to the painted area.
If you have no idea of what I'm talking about, simply don't use windowed mode. If you do know what I'm talking about, the above should be enough reasons to stay far, far away from windowed mode together...
/Johan