From: "JB Parrett" <[EMAIL PROTECTED]>

> Have you taken a look at WinScreenLock() and WinScreenUnlock()? They are
> only available on Palm OS 3.5 or newer, but they'll let you update the
form
> and have all the changes displayed at once.

My understanding is that these functions are only optionally implemented in
any given Palm OS implemention. But I use 'em:

struct ScreenLocker {
 ScreenLocker(WinLockInitType initMode = winLockCopy) :
  _ret(WinScreenLock(initMode))
 {
 }
 ~ScreenLocker() { if (_ret) WinScreenUnlock(); }

private:
 UInt8* _ret;
};

Example:

void SomeDrawFunc()
{
    ScreenLocker locker;
    // draw stuff
}


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to