Re: David or Bernie
- Posted by Greg Phillips <i.shoot at REDNECKS.COM> Sep 29, 1999
- 526 views
Terry wrote: > On Wed, 29 Sep 1999 18:42:48 -0400, Bernie Ryan <bwryan at PCOM.NET> wrote: > > >Terry wrote: > > > >>When I use the following > >> > >> phys_height = c_func(GetDeviceCaps, {win1_dc, VERTSIZE}) > >> phy_width = c_func(GetDeviceCaps, {win1_dc, HORZSIZE}) > > > >Terry > > The value maybe what your video driver is telling windows. > > > Did you try to see what these return > > phys_height = c_func(GetDeviceCaps, {win1_dc, VERTRES}) > > phy_width = c_func(GetDeviceCaps, {win1_dc, HORZRES}) > > Yes, they correctly return the screen size in pixels. > > >>btw Bernie, your Win32API will provide a very useful reference tool, as > >>David's Win32Lib already does. > > > > My library is more than a reference, it also a complete self contained > > > > enviorment that can be used to write windows programs that took 2500 > > > > hours of work to write :) > > 2500 hours? that's 104 days, working non stop, 24 hours a day, or more than two years, working on it 3 hours a day, every day. I do hope you're exaggerating =) Regards, Greg Phillips > >Bernie > > Oops, sorry if my comment sounded belittleing (how do you spell that?) > it certainly wasn't meant to :( > > Thanks also to David C. > > David wrote: > >"Of course, the Windows driver doesn't really know the exact size of the > >display you have attached to your video adaptor. These dimensions are based > >on standard display sizes for the adaptors." > > If it doesn't return the correct values what is it's use? > With reference to your EzCreateFont function, how can the wrong value > provide useful info? > > Soon to be back with another silly Q > > Terry -- The Euphoria CD Project: "Only $9.95, and comes with this juicer absolutely free!" http://www.redrival.com/euphoria/doslinux.html