Re: Anyone not using 14" screen
- Posted by Terry <terry at EDERNEY.IDPS.CO.UK> Oct 01, 1999
- 653 views
Bernie Ryan wrote: > Is there some reason that you need the screen > size in milimeters ? > Maybe there is another way to accomplish what you > are trying to do. The problem I was having was with font heights, but it turned out that I had GetDC'd twice without ReleaseDC'ing, hence was not getting the correct textmetric values. This though still doesn't address the usefulness (uselessness) of VERTSIZE\HORZSIZE when they return values of 203mm and 270mm respectively for both a 15" screen (from Everett) and a 17" (from Wes and Mark). If it is of any use to anyone *not* using David's library, I have found that using the C func. CreateFont and specifying a font height of double the pointsize required gives exactly the same font height as other windows programs. Thanks to all those who ran my piece of code and returned the values All the best Terry