home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / 20621 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.8 KB  |  34 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!munnari.oz.au!manuel.anu.edu.au!dubhe.anu.edu.au!csis!mizar!dave
  3. From: dave@mizar.csis.dit.csiro.au (David Campbell)
  4. Subject: What are the null macros for X types?
  5. Message-ID: <1992Dec30.071140.12876@csis.dit.csiro.au>
  6. Sender: dave@mizar (David Campbell)
  7. Nntp-Posting-Host: mizar
  8. Organization: CSIRO Division of Information Technology
  9. Date: Wed, 30 Dec 1992 07:11:40 GMT
  10. Lines: 22
  11.  
  12. X defines many types (eg Display, Window, Pixmap, Colormap).   Some of these
  13. types are used as pointers (eg Display), but others are actually unsigned
  14. longs (eg Window, Pixmap, Colormap).
  15.  
  16. Is XCreateWindow guaranteed to never return 0?  I can't seem to find any detail
  17. of such semantics; otherwise I would assume that an acceptable null value for
  18. a window is 0.  Is there a macro which can be used instead of hardcoding 0? There seem to be a handful of macros like NULL, None, etc but I don't know
  19. which to use and NULL seems inappropriate because a Window is not a pointer.
  20.  
  21. Thanks,
  22. -- 
  23.   +--------------------------------------------------+-----------------------+
  24.   | Dave Campbell                                    |            UNIX & C++ |
  25.   | Phone: + 61 6 275 0944      Fax: + 61 6 257 1052 |   _--_|\       PLEASE |
  26.   | CSIRO Division of Information Technology         |  /      \             |
  27.   | Centre for Spatial Information Systems           |  \_.--._/ <- Canberra |
  28.   | PO BOX 664                                       |        v              |
  29.   | CANBERRA ACT 2601       +------------------------+                       |
  30.   | AUSTRALIA               | dave@csis.dit.csiro.au |                       |
  31.   +-------------------------+------------------------+-----------------------+
  32.   |                       Get right.....or get left.                         |
  33.   +--------------------------------------------------------------------------+
  34.