Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>_floodfill_w() get currently active screen page</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _floodfill_w()          Get currently active screen page

 #include   <graph.h>

 short _getactivepage(void);

    _getactivepage() returns the currently active video page; in OS/2, only
    page 0 is allowed.

    Returns:    Number of the active page.

 Portability:   Not supported by the ANSI standard.

   -------------------------------- Example ---------------------------------

        This program lets you flip between the first and second page.

    #include <conio.h>
    #include <graph.h>
    #include <time.h>
    #include <stdlib.h>

    void main()
    {
        short origv, origa;

        origa  = _getactivepage();
        origv  = _getvisualpage();

        _clearscreen(_GCLEARSCREEN);
        _setactivepage(0);
        _outtext("This is the first page.");
        _setvisualpage(0);
        getch();
        _setactivepage(1);
        _outtext("This is the second page.");
        _setvisualpage(1);
        getch();

        _setvideomode(_DEFAULTMODE);
        _setactivepage(origa);
        _setvisualpage(origv);
    }


See Also: _getvisualpage() _setactivepage() _setvisualpage()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson