Dev C++ Highlight Color
Things don't have to be black and white all the time. Use a Windows API call to add some color to your text output.
I am currently developping a GUI interface game for windows XP. I am currently having difficulty changing the background of a EDIT box created with CreateWindowEx. It's default background is white (which is the color I want). But the user is not supposed to. Jan 03, 2017 Licensed to YouTube by WMG; BMI - Broadcast Music Inc., EMI Music Publishing, LatinAutor, UNIAO BRASILEIRA DE EDITORAS DE MUSICA - UBEM, LatinAutor - SonyATV, Audiam (Publishing), and 7.
26,537 ViewsScientist
Nice..
How do you change the background color?
Pretty please?
And is there a way to make the program appear fullscreen when started up?
Akilah712
I have tried to use this in my program.
However when I used #include<windows.h> I get errors when I compile.
I am using the MSVisual 6.0 ???
on windows only:
system('color <put your colors here>');
colors the whole window and all text to any of the standard 16 colors
//0 = Black 8 = Gray
//1 = Blue 9 = Light Blue
//2 = Green a = Light Green
//3 = Aqua b = Light Aqua
//4 = Red c = Light Red
//5 = Purple d = Light Purple
//6 = Yellow e = Light Yellow
//7 = White f = Bright White
you put two characters, first one is background color, second is text color:
system('color c0'); //colors background to light red, with black text
dombit
ya, bakround color use . - system('color f0'); and #include <stdlib.h> it will make the bacround wight with black text for more color codes type 'color help' in cmd prompt. the first nuber ids the backround and the seconed is the text. Vst plugins adobe audition 1.5 antares auto-tune problems. also to start the consol in full screen send the keys alt and enter like this
keybd_event(VK_MENU, 0x38, 0, 0);
keybd_event(VK_RETURN, 0x1c, 0, 0);
keybd_event(VK_RETURN, 0X1c, KEYEVENTF_KEYUP, 0);
keybd_event(VK_MENU, 0x38, KEYEVENTF_KEYUP, 0);
jamesysco
Nice one :) the 'system' function..who'd have thought it :) Thanks!
Gold must be pretty worthless these days if all of the vastly superior rules were shoved aside for that one.when any funtion needs to return any value or recieves a value then itshould proceed with a type of value it can recieve usually an intUm, return and receive tend to be mutually exclusive.
To get all the system() commands (WINDOWS ONLY!), open up the command prompt (start>accessories>Command Prompt), and type 'help' (without the quotes). For help on a specific command, type 'help <command name>' (again, no quotes).