Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtMemoryDC, what is it really doing for me? Collapse All
Subject Author Date
Seth Strong Jan 15, 2007 - 2:03 PM

I see in different painting examples you consistantly create a CExtMemoryDC. but I don’t see where it is flipped or drawn the the display. Can you provide more information about this class?

Thanks,
Seth

Technical Support Jan 16, 2007 - 11:37 AM

The CExtMemoryDC::__Flush() is an internal method that draws the content of in-memory surface into the original device context. This method is invoked from the CExtMemoryDC::~CExtMemoryDC() destructor. But you can also invoke it explicitly. In most cases, you should simply declare an in-stack local CExtMemoryDC variable and specify a pointer to the original device context in the constructor parameter. Sometimes you may also need to specify the rectangular area of the original device context. This may be needed if you want to use only some part of the surface. The CExtMemoryDC::__MDC_OPT_*** flags are typically not required. They are designed for the very specific painting tasks described in the code comments next to each constant.