[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
         wn_color -- set window & border attribute

        USAGE

          wn_color(wn, atrib, batrib)
          WINDOWPTR wn;
          unsigned int atrib, batrib;

                wn -    window handle
                atrib - attribute to be used for the window
                batrib- attribute to be used for the border

          wn_color sets the attribute to be used for all subsequent
          operations in the window.  The attribute byte contains the
          background specific data in the upper 4 bits and the foreground
          specific data in the lower 4 bits.  Color and bit definitions
          can be found in windows.h. You can use a statement of the form:

                         atrib = (bground << 4 | fground);

          to set the attribute to the correct format.

          Attributes are defined in windows.h.

        RETURNS

          Nothing.

        CAUTIONS

          None.

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson