Jump to content


changing the background color of a console


2 replies to this topic

#1 GameEngine_Designer

    Valued Member

  • Members
  • PipPipPip
  • 100 posts

Posted 25 June 2007 - 03:21 PM

Is there a way to change the color of the background in the text game?

I know I can change the text color but what about the black background?

I am building it ion a console app.

Using C++.

#2 dave_

    Senior Member

  • Members
  • PipPipPipPip
  • 584 posts

Posted 25 June 2007 - 03:54 PM

30 seconds on google would have got you your answer.

http://msdn2.microso...y/ms684206.aspx

#3 GameEngine_Designer

    Valued Member

  • Members
  • PipPipPip
  • 100 posts

Posted 25 June 2007 - 03:58 PM

Oh god.. I used google, I asked this in another forum and I got that link, that's to change the text,

SetConsoleTextAttribute

which I already know of, I want to change the black background in the console screen it's self, not text.


EDIT= FillConsoleOutputAttribute = Writes a text and background color attribute combination to a specified number of consecutive cells in a screen buffer. found it, my bad, it was on that page, sorry for that.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users