development/Common/Utility/source/MainConsole.cpp
//This will set the forground and background color for printing in a console window.
This will set the forground and background color for printing in a console window.
This will set the forground and background color for printing in a console window .
void MainConsole::SetColor(int ForgC, int BackC)
{
    WORD wColor = ((BackC & 0x0F) << 4) + (ForgC & 0x0F);;
    ::SetConsoleTextAttribute(::GetStdHandle(STD_OUTPUT_HANDLE), wColor);
    return;
}
void MainConsole :: SetColor ( int ForgC , int BackC ) { WORD wColor = ( ( BackC & 0x0F ) << 4 ) + ( ForgC & 0x0F ) ; ; :: SetConsoleTextAttribute ( :: GetStdHandle ( STD_OUTPUT_HANDLE ) , wColor ) ; return ; }
This will set the forground and background color for printing in a console window.
This will set the forground and background color for printing in a console window .