[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _gtScrDim()
 Get the current screen dimensions
------------------------------------------------------------------------------
 C Prototype

     #include "gt.api"
     ERRCODE _gtScrDim(
                        USHORTP uipHeight,
                        USHORTP uipWidth
                      )

 Arguments

     uipHeight receives the screen height.

     uipWidth receives the screen width.

 Returns

     _gtScrDim() returns zero if successful.  Any other value indicates an
     error.

 Description

     _gtScrDim() saves the current screen dimensions in uipWidth and
     uipHeight.

 Examples

     .  In this example, a function uses _gtScrDim() to get the screen
        dimensions then returns the height:

        #include "gt.api"

        USHORT scrGetHeight( void );

        USHORT scrGetHeight( )

        {
           USHORT uiHeight;
           USHORT uiWidth;

           _gtScrDim( &uiHeight, &uiWidth );

           return (uiHeight);
        }

 Files  Library is CLIPPER.LIB, header file is Gt.api.


See Also: _gtSetMode()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson