Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Technical Reference - <b>_gtscrdim()</b> http://www.X-Hacker.org [<<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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson