#include "graphics.h" int getcurrentwindow( );
The function gets the current window number, which is the window where all graphics operations occur.
/* setcurrentwindow example */ #include void change ( int window ) { int oldwindow = getcurrentwindow( ); setcurrentwindow(window); // Do whatever graphics operations you like in the new current // window... // Restore the original window: setcurrentwindow(oldwindow); }