home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1297 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.9 KB  |  44 lines

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