User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:graphics.h:getmaxwidth
click
to support this page (eg 0,42 € or so) Thanks.

getmaxwidth

Syntax of getmaxwidth

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

Description of getmaxwidth

The getmaxwidth function is available in the winbgim implementation of
BGI graphics. The function returns the maximum width 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.

Example of getmaxwidth

/* 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;
}

See also

output of getmaxwidth example

  no output of example at the moment
  do not hesitate and add it...  
advertising
c/graphics.h/getmaxwidth.txt · Last modified: 2015/05/06 23:06 (external edit)

Impressum