SetConsoleTextAttribute

This is a discussion on SetConsoleTextAttribute within the Windows Programming forums, part of the Platform Specific Boards category; I want to alternate two SetConsoleTextAttribute() in a switch() statement. So i declared and assigned it outside main() as global ...

  1. #1
    Registered User
    Join Date
    Dec 2007
    Location
    France
    Posts
    747

    SetConsoleTextAttribute

    I want to alternate two SetConsoleTextAttribute() in a switch() statement.
    So i declared and assigned it outside main() as global and i want to switch between them like this bArg1 != bArg2;

    If i assign it to a bool ( can i? ) how should i call it then in the program?

    Like that? bArg1;

    Code:
    bool bArg1=  SetConsoleTextAttribute ( h, BACKGROUND_GREEN);
    Thanks in advance!
    Last edited by Ducky; 03-18-2009 at 10:37 PM.
    Compiler MSVC++ 2010 with Code::Blocks.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21