User Tools

Site Tools


c:graphics.h:getmaxheight

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:graphics.h:getmaxheight [2015/05/06 23:06]
c:graphics.h:getmaxheight [2024/02/16 01:05] (current)
Line 1: Line 1:
 +===== getmaxheight =====
 +
 +
 +====Syntax of getmaxheight ==== 
 + <code c>
 +#include <graphics.h>
 +int getmaxheight(void);
 +  </code>
 +
 +
 +==== Description of getmaxheight ==== 
 +<code c>
 +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. Note: The
 +value returned is correct for a window with a non-empty title. If you
 +create a window with the empty string (no characters) for a title, then
 +the height can be increased by GetSystemMetrics(SM_CYCAPTION).
 +</code>
 +
 +
 +==== Example of getmaxheight ====
 +<code c>
 +/* 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;
 +}
 +</code>
 +
 +
 +==== See also ====
 +[[getmaxy]]
 +[[getwindowheight]]
 +[[getmaxwidth]]
 +[[initwindow]]
 +
 +
 +===== output of getmaxheight example ===== 
 +
 +    no output of example at the moment
 +    do not hesitate and add it...  
 +
 +
  

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War

Impressum Datenschutz