MFC Doc\RC View\DC

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?

Dexter

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.

V-man

Thanks! It works fine!