View Full Version : MFC Doc\RC View\DC

02-17-2002, 11:05 AM
Hi to all!

I'm coding in an MFC enviroment (MDI Doc\view). I'm sharing a single RC between multiple DCs but it renders in a strange way.. seems like when i render a DC it uses options set for another dc (perspective, zoom, projection mode)... why?


02-17-2002, 12:28 PM
Makes sense if you are using the same RC. What I did was that I used one RC per MDI window, and I juggled around which one was the current RC.

This was problematic since sometimes windows ate the required message and it caused havoc.

Some of the messages I used were SetFocus, KillFocus and a variable called FocusHasBeen Set.

Your method is a easier since you need to reset the RC everytime its time to refresh the window.


02-18-2002, 07:19 AM
Thanks! It works fine!