Quote:
Originally posted by gstercken
Joe, just a general suggestion: I don't understand why you use a 2D array to store the bitmap data, and SetPixel() to render it in the PeekView? Your data is a bitmap, right? So why don't you just take a CBitmap and attach it to your doc? The doc's GetSquareColor() / SetSquareColor() would then have to be implemented to access that bitmap (using, for example, something like GetBitmapBits() / SetBitmapBits()), and the PeekView would simply take that bitmap and BitBlt() it to its DC. There's no point in having an additional 2D array of pixels to store the bitmap data when you can simply store it in a CBitmap.
o i c...actually i started with the array for the grid purposes...then came all the way here...so continued using it.....:(