home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4666 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.9 KB  |  47 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!emr1!jagrant
  3. From: jagrant@emr1.emr.ca (John Grant)
  4. Subject: how does Windows know the physical dimensions of my monitor!?!?!
  5. Message-ID: <1993Jan7.001644.7600@emr1.emr.ca>
  6. Organization: Energy, Mines, and Resources, Ottawa
  7. Date: Thu, 7 Jan 1993 00:16:44 GMT
  8. Lines: 37
  9.  
  10. The docs say that the following:
  11.     xsize=GetDeviceCaps(hdc,HORZSIZE);
  12.     ysize=GetDeviceCaps(hdc,VERTSIZE);
  13. returns the dimensions of the physical display (mm).
  14. How does it know these values for monitors????
  15.  
  16. First of all, who am I talking to when I call GetDeviceCaps?
  17. The display driver?  Windows?
  18.  
  19. If I am talking to the display driver, does it return these values by:
  20.     1. looking them up from a table in the driver
  21.     2. asking the graphics card for the values
  22.     3. computing them from the resolution of the card and the
  23.        size of a single pixel.  If so, does it get the size of
  24.        the pixel from:
  25.       (a) a table in the driver
  26.       (b) asking the graphics card for the values
  27.  
  28. I have a VGA Wonder and a NEC 3D.  When I use ATI's VSETUP program, I
  29. can tell it that I have a NEC 3D.  Presumably VSETUP has a table of monitor
  30. dimensions and sets that in the card's config table.  The Windows driver
  31. can then ask the *card* how big the monitor is.  But what if I hook up
  32. another monitor that VSETUP doesn't know about?  What then?
  33.  
  34. The size is returned correctly on my system, but
  35. the values returned on a NEC 6G (*huge beast*) are incorrect (smaller
  36. than they should be).  That system is running a #9 24-bit card
  37. in 1280 X 1024 resolution.  When it was set up, there was no way to
  38. tell the card which monitor was being used.
  39.  
  40. I would appreciate it if somone who knows driver internals could
  41. poke around in the DDK for an answer.
  42.  
  43. -- 
  44. John A. Grant                        jagrant@emr1.emr.ca
  45. Airborne Geophysics
  46. Geological Survey of Canada, Ottawa
  47.