home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!decwrl!csus.edu!netcom.com!whedon
- From: whedon@netcom.com (Bill Whedon)
- Subject: Re: What is the windows call to find the video mode?
- Message-ID: <m44mt-p.whedon@netcom.com>
- Date: Wed, 12 Aug 92 20:30:21 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- References: <l8ijr3INN8qr@predator.cs.utexas.edu>
- Lines: 33
-
- In article <l8ijr3INN8qr@predator.cs.utexas.edu> marty@cs.utexas.edu (Marty J. Sirkin) writes:
- >I have a very simple question (the answer to which I have been
- >unable to find in my very badly organized manuals).
- >
- >I want, at the start of an app, to be able to determine the
- >video mode in which windows is running. Specifically I
- >want to know if it is a 16 or 256 (or 32K) color mode so
- >that I can use one of several bitmaps for the intro screen.
- >
- >I have been unable to find the proper call, and I'm sure someone
- >out there can answer this very simply.
- >
- >Thanks!
- >Marty Sirkin
- There is no single call which will return all the information you want
- at once. I believe you need to call GetDeviceCaps with the nIndex
- parameter set once for each item of information you need. Information
- like this is in "Programming Windows", by Charles Petzold, published
- by Microsoft Press, ISBN 1-55615-264-7. If you don't have it, you need
- to quit programming Windows until you get it.
-
- You can also see the SDK Reference for the specific index parameter
- values for each tidbit of data you wish to request. I don't recommend
- using the SDK docs as a textbook, but a quick glance through them on
- occasion sure wouldn't hurt. Take 'em to the head with you, or to the
- opera when your wife/husband/friend drags you along.
-
- Now. I've not only bitched at you to RTFM, but also provided an
- answer for your question. I hope you appreciate the fact that many of
- our colleagues would only have done the former. RTFM, dude.
- Peace,
- Bill Whedon
-
-