-
window coloring
hello, i changed the background color of my window for my app from white to black by changing,
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
to
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+2);
which gives it black background and black text with a white highlight, what i want to do now is get rid of the highlight and make the text bright green, however i couldnt fine any lines pertaining to string color.... =/
so if some one has done this before please let me know.
-
You need to get a handle to the device context for the window and then SetTextColor(HDC, COLORREF).
good luck
U.
-
THANK YOU, works like a charm!
-
bg color
k i got my text green with SetTextColor(hdc, 0x0000FF00);
but the background on it is white still, i looked at MSDN and found, SetTextBkColor( COLORREF cr ); so i used, setTextBackgroundColor( Color 0x00000000); but, setTextBackgroundColor(); comes up as an undeclared identifier, but MSDN didnt say what header to use with it =/
-
Never mind on that, i got it by using
SetBkMode(hdc, TRANSPARENT);
just gotta love how MSDN has about 80 listings that do basically the same thing =)
=)