User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:graphics.h:getwindowwidth

getwindowwidth

Syntax of getwindowwidth

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

Description of getwindowwidth

The getwindowwidth function is available in the winbgim implementation of
BGI graphics. The function returns the total width of the window
including nondrawable border areas.

Example of getwindowwidth

/* getwindowwidth example */
#include <graphics.h>
 
int main(void)
{
   int w_left, w_right;
   int width; // Total width of w_left;
 
   // Make two windows, side by side */
   w_left = initwindow(300, 200);
   width = getwindowwidth( );
   w_right = initwindow(300, 200, width, 0);
 
   /* clean up */
   getch();
   closegraph();
   return 0;
}

See also

output of getwindowwidth example

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

Impressum Datenschutz