Thank you!
I re-debugged my appl, and always got 'no shadow window' info when I try to
WinRestoreBits() for more than once. My code looks like,
WinHandle saveW = NULL;//global
if(!saveW)
{
saveW = WinSaveBit(&bounds, &err);
}
else//only first calling here would restore window.
{
WinHadle tempW;
tempW = WinCreateOffscreenWindow(160, 160, screenFormat, &err);
WinCopyRectangle(saveW, tempW, &bounds, 0, 0, winPaint);
WinRestoreBits(tempW, 0, 0);//tempW would be deleted, but saveW would not?
}
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/