User Tools

Site Tools


Programming Reference/Librarys

Question & Answer

Q&A is closed



Syntax of getwindowheight

#include <graphics.h>
int getwindowheight(void);

Description of getwindowheight

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.

Example of getwindowheight

/* 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 */
   return 0;

See also

output of getwindowheight 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
c/graphics.h/getwindowheight.txt · Last modified: 2024/02/16 01:05 (external edit)

Impressum Datenschutz