Discussion:
Auto adjustment of width in CPen
(too old to reply)
MFC Dev
2015-08-26 13:47:22 UTC
Permalink
Using CPen, if we draw a line, the width is normal to see in smaller resolution (say 1024 * 768). But when viewed in larger resolution, the width of the line dramatically increases (say 1900 x 1200). My requirement is, the width shouldn't increase when resolution increases. Help me out!
Stephen Wolstenholme
2015-08-26 14:37:25 UTC
Permalink
On Wed, 26 Aug 2015 06:47:22 -0700 (PDT), MFC Dev
Post by MFC Dev
Using CPen, if we draw a line, the width is normal to see in smaller resolution (say 1024 * 768). But when viewed in larger resolution, the width of the line dramatically increases (say 1900 x 1200). My requirement is, the width shouldn't increase when resolution increases. Help me out!
I use a global GetZoom in the view to calculate the Width parameter
for calls to CreatePen.

Steve
--
Neural Network Software for Windows http://www.npsnn.com

EasyNN-plus More than just a neural network http://www.easynn.com
Loading...