Re: Screen Size

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Mike Williams" <Mike@xxxxxxxxxxxxxxxxx> wrote in message
news:ucg0hEw8GHA.3264@xxxxxxxxxxxxxxxxxxxxxxx
I would appreciate it if anyone out there could tell me what value is returned on their own
systems, especially those people who may have more than one graphics card and / or more than one
monitor. Try the following code and compare the returned result (in the Form's Caption bar) to the
actual physical measurement across the width of the display. It may not have anything to do with
the monitor or graphics card driver of course, but I'd like to see the results. Windows must be
getting these values from somewhere.

Mike

Option Explicit
Private Declare Function GetDeviceCaps Lib "gdi32" _
(ByVal hdc As Long, ByVal nIndex As Long) As Long
Private Const HORZSIZE = 4 ' Horizontal size in millimeters

Private Sub Form_Load()
Caption = GetDeviceCaps(Me.hdc, HORZSIZE) & " millimeters"
End Sub

XP home SP2, 17" CRT, 1024x768 pixels, Intel 82865G graphics controller
measured width = 330 mm, Caption = 320 millimeters

Jim Y


.



Relevant Pages

  • Re: MCE gets blurry when doing schoolwork on other monitor
    ... Since you have a fairly lowpowered Graphics card and since NVIDIA recommends ... when I turn off the monitor or just stop using the monitor. ... Dana Cline - MCE MVP ... the video on the ...
    (microsoft.public.windows.mediacenter)
  • Re: lsass.exe process
    ... it's using more private bytes and less bytes. ... Store private bytes increases by about 940 mb with sp1, ... have used the accurate method on one server. ... I wouldn't look at the Health Monitor for the average. ...
    (microsoft.public.windows.server.sbs)
  • Re: MCE gets blurry when doing schoolwork on other monitor
    ... when I turn off the monitor or just stop using the monitor. ... Also, last night, the graphics card stopped working in dual view and I had to ... the video on the tv ... schoolwork on my flatscreen. ...
    (microsoft.public.windows.mediacenter)
  • Re: Vaxstation 3100 and graphics card
    ... > pin vax monitor plug to the 15 pin d-sub VGA plug. ... > happen even if the adaptor is not connected. ... and the manual does not indicate any switch or jumper ... the two switches on the graphics card). ...
    (comp.os.vms)
  • Re: Grub issues and 2 harddrives
    ... Sax2 to set up your graphics card, monitor, and mouse. ... "Lost? ...
    (alt.os.linux.suse)