
Print preview font selection problem
Quote:
> I have a MDI app which has print preview support in it.
> I made my views OnDraw select various fonts to display different bits of
> text with and this is ok then its drawing the window, but when I switch
> to print preview it crashes on the SelectObject call to set the font.
> Anyone have any ideas?
You must post code to have this answered.
One issue is that in print preview OnDraw may be called multiple times with
the same DC. But just post code.
Quote:
> (Also, a call to my documents UpdateAllViews(NULL) doesn't update the
> current view after I have changed the font......)
UpdateAllViews just results in CView::OnUpdate() beeing called. If you do
nothing in there, nothing happens.
You need at least an Invalidate(); in there for the View to be redrawn.
cU
--
http://djuga.home.ml.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Retriever 1.0 is out: http://retriever.home.ml.org
Shareware image viewer, thumbnailer & database
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~