Thread: SetConsoleTextAttribute

  1. #1
    Registered User
    Join Date
    Dec 2007


    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;

    bool bArg1=  SetConsoleTextAttribute ( h, BACKGROUND_GREEN);
    Thanks in advance!
    Last edited by Ducky; 03-18-2009 at 10:37 PM.
    Windows 10 with Visual Studio 14.0.

Popular pages Recent additions subscribe to a feed