Window minimize erases content?
Window minimize erases content?
- Subject: Window minimize erases content?
- From: Darrell Walisser <email@hidden>
- Date: Wed, 30 May 2001 09:59:44 -0500 (EST)
I have a NSWindow, created manually as a retained window, whose
contentview is set to a NSQuickDrawView. To draw to the window port, I
call LockPortBits() and GetPortBits(), then draw directly to window memory
using my own routines.
My problem is that when the window is minimized and unminimized,
the port gets colored with the Aqua pinstrip background. Since my app
will be drawing into the window buffer even when it is minimized, it is
important to me that this works correctly. Any clues as to how I might fix
this? Do I need to redraw and flush the entire window buffer when I detect
a minimize?
Thanks,
Darrell