getwindowheight


Syntax

#include <graphics.h>

int getwindowheight(void);

Description
The getwindowheight function is available in the winbgim implementation of BGI graphics. The function returns the total height of the window including nondrawable border areas.

Return Value
getwindowheight returns the total height of the window

See also
getmaxy
getwindowwidth
gety

Example

/* getwindowheight example */ 

#include <graphics.h>



int main(void)

{

   int w_above, w_below;

   int height; // Total height of w_above;



   // Make two windows, one on top of the other */

   w_above = initwindow(300, 200);

   height = getwindowheight( );   

   w_below = initwindow(300, 200, 0, height);



   /* clean up */

   getch();

   closegraph();

   return 0;

}


Back to index