Use WinSaveBits and WinRestoreBits. Before drawing the line save the bits, than draw the line. On next line, restore saved bits, save the bits for current line and then draw the line.
-----Original Message----- From: Andrew [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 13:27 To: Palm Developer Forum Subject: Tricky Things about WinDrawLine HI All, In order to simulate a mouse drag event on Palm, the application has been design to use pen drag to resize a table's width. To achieve that, the problem is that we currently use 'WinDrawLine' to draw a vertical line, then use the pen to drag it horizontally. The background suppose to be same as before. But, actually, when the vertical line passed, the background even every thing on the screen include menu bar, has been removed. In order to skip the problem, we set 'WinDrawOperation ' to 'winInvert' mode(which is Bitwise XOR the color-matched source pixel onto the destination). Unfortunately, it does make sense. The backround still has been removed to blank. So, How To Draw a Line without affect backround components. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
