getmaxheight


Syntax
#include <graphics.h>
int getmaxheight(void);
Description
The getmaxheight function is available in the winbgim implementation of BGI graphics. The function returns the maximum height that will fit on the screen when creating a window with initwindow. This is one of the few BGI functions that may be called before calling initwindow.

Return Value
getmaxheight returns the maximum window height

See also
getmaxy
getwindowheight
getmaxwidth
initwindow

Example
/* getmaxwidth and getmaxheight example */ 
#include <graphics.h>

int main(void)
{
   /* Make a window, as big as possible */
   initwindow(getmaxwidth( ), getmaxheight( ));

   /* clean up */
   getch();
   closegraph();
   return 0;
}

Back to index