CScrollView and mapping modes
Philip Beck -- splinta@cix.compulink.co.uk
Tuesday, November 26, 1996
Environment: VC++ 1.52, Windows 3.1, SDI
Hi,
I have an SDI interface where I use CScrollView. I have read that this
class sets the mapping mode to MM_ANISOTROPIC. For the past three weeks I
have been struggling to use MM_LOENGLISH so that the view can be printed.
My problem is that the columns of text that cover my vertically scrolling
view spread out differently on every machine that I run it on. Is this
because I am fighting against inherited behavour or because there is
something about mapping modes working differently on different graphics
cards ?
Any suggestions would be great.
I have MSDN.
Phil.
Carl Gunther -- cgunther@ix.netcom.com
Wednesday, November 27, 1996
Phil,
You want to set the mapping mode for the device context *differently*
depending upon whether you are drawing to the screen or
printing. The standard way to do this is to override OnPrepareDC()
in your CView-derived class, and set the mapping mode there by
a call to SetMapMode().
Carl
Philip Beck wrote:
>
> Environment: VC++ 1.52, Windows 3.1, SDI
>
> Hi,
>
> I have an SDI interface where I use CScrollView. I have read that this
> class sets the mapping mode to MM_ANISOTROPIC. For the past three weeks I
> have been struggling to use MM_LOENGLISH so that the view can be printed.
> My problem is that the columns of text that cover my vertically scrolling
> view spread out differently on every machine that I run it on. Is this
> because I am fighting against inherited behavour or because there is
> something about mapping modes working differently on different graphics
> cards ?
>
> Any suggestions would be great.
> I have MSDN.
>
> Phil.
--
Check out the extensive Website of the Labor/Community Strategy Center
at http://www.igc.apc.org/lctr/
Check out the Website of Songs for Social Change
at http://globalvisions.org/cl/sfsc/
Copyright 1996 Carl E. Gunther. Permission to reproduce this message
in text form for not-for-profit purposes freely granted provided that
the preceeding copyright notice is retained.
Jim Tannenbaum -- jimt1@voicenet.com
Monday, December 02, 1996
Phil,
It sounds as if you have a font problem. A couple of things to
think about:
1. Not all fonts are on all machines.
2. If the font is not found, your s/w will select the "best
approximation" of the font you selected.
3. Did you set the columns up with tabs or spaces?
4. Fixed width fonts work differently than variable width fonts if
you do not use tabbed columns (btw, tabbed columns are the "correct" solution).
Good luck,
Jet
JJM Systems, Inc Phone: (215) 672-3660
1 Ivybrook Blvd, Suite 190 Fax: (215) 672-5702
Ivyland, PA 19874 Net: jimt1@voicenet.com
| Вернуться в корень Архива
|