Am Die, 2002-09-03 um 14.16 schrieb Richard Coutts:

Hi,

> I tried using WinPaintChars and got the same results (the off bits were
> drawn using the bacground color, instead of not being drawn at all).  

You didn't change the drawing mode.

> sounds like I need to learn what is meant by the "current drawing state
> transfer mode."

You can find this in the API reference manual:

----------------------------------------------------------------------
Purpose:   Set the transfer mode to use in subsequent draw operations.
Prototype: WinDrawOperation WinSetDrawMode (WinDrawOperation newMode)

Parameters
 
-> newMode      
Transfer mode to set; specify one of the WinDrawOperation values.


Result:    Returns the previous transfer mode.

Comments:  This function changes the current drawing state. If
necessary, use WinPushDrawState to preserve the current drawing state
before you set this function and use WinPopDrawState to restore it
later.

Compatibility: Implemented only if 3.5 New Feature Set is present.
----------------------------------------------------------------------

So you might do something like

WinPushDrawState();
WinSetDrawMode(winOverlay);
WinPaintChars(...);
WinPopDrawSate();

HTH,

Daniel Seifert




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

Reply via email to