Click here to Skip to main content
15,906,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: loosing my backspace messages??? Pin
Beer265-Oct-03 15:57
Beer265-Oct-03 15:57 
GeneralRe: loosing my backspace messages??? Pin
J. Dunlap5-Oct-03 16:28
J. Dunlap5-Oct-03 16:28 
AnswerRe: loosing my backspace messages??? Pin
Michael Dunn5-Oct-03 19:26
sitebuilderMichael Dunn5-Oct-03 19:26 
GeneralRe: loosing my backspace messages??? Pin
Beer266-Oct-03 3:28
Beer266-Oct-03 3:28 
GeneralSQL Database Pin
don7cry5-Oct-03 15:21
don7cry5-Oct-03 15:21 
GeneralRe: SQL Database Pin
alex.barylski5-Oct-03 16:12
alex.barylski5-Oct-03 16:12 
Generaltext color and font Pin
no_life5-Oct-03 12:51
no_life5-Oct-03 12:51 
GeneralRe: text color and font Pin
alex.barylski5-Oct-03 16:29
alex.barylski5-Oct-03 16:29 
How did you write it in C++ and compile it in visual basic?

Visual Basic allows you to change the color by setting the window/form object property...if I remember correctly...it's something like forecolor and backcolor if you want to do it dynamically at run time. Or you can play with the properties though the properties dialog box.

In C++ assuming your using MFC or SDK it's a little different...there is no way to cheat and use a properties dialog box, you have to code it like the first example I gave you in visual basic.

pDC->SetTextColor(RGB(64,128,255)); if your using MFC or 
SetTextColor(hdc, RGB(64,128,255)); if your using SDK


As far as setting text colors at the DOS console...thats totally different.
I believe in c, you had to use a library like borlands BGI library..in QBasic...I believe it was the COLOR statement.

This should atleast give you a starting point to work from so long as I understand you correctly anyways... Smile | :)

Cheers Smile | :)

I'm drinking triples, seeing double and acting single Cool | :cool:
GeneralRe: text color and font Pin
J. Dunlap5-Oct-03 16:32
J. Dunlap5-Oct-03 16:32 
GeneralRe: text color and font Pin
no_life6-Oct-03 17:11
no_life6-Oct-03 17:11 
GeneralRe: text color and font Pin
no_life7-Oct-03 8:55
no_life7-Oct-03 8:55 
GeneralRe: text color and font Pin
alex.barylski7-Oct-03 9:16
alex.barylski7-Oct-03 9:16 
GeneralRe: text color and font Pin
no_life7-Oct-03 20:03
no_life7-Oct-03 20:03 
GeneralMDI FormView Printing Pin
vancouver7775-Oct-03 11:55
vancouver7775-Oct-03 11:55 
GeneralIP/name conversion Pin
Kuniva5-Oct-03 10:36
Kuniva5-Oct-03 10:36 
GeneralRe: IP/name conversion Pin
Michael Dunn5-Oct-03 12:09
sitebuilderMichael Dunn5-Oct-03 12:09 
GeneralAttributes in Visual C++ .NET 2003 Pin
Urban Olars5-Oct-03 9:43
Urban Olars5-Oct-03 9:43 
Generalpow Pin
iasaber5-Oct-03 8:55
iasaber5-Oct-03 8:55 
GeneralRe: pow Pin
ZoogieZork5-Oct-03 8:58
ZoogieZork5-Oct-03 8:58 
GeneralVisual Studio Wizards Pin
Franz Klein5-Oct-03 8:00
Franz Klein5-Oct-03 8:00 
GeneralWin 32 and MFC Problem Pin
spiritualfields5-Oct-03 7:36
spiritualfields5-Oct-03 7:36 
GeneralRe: Win 32 and MFC Problem Pin
Navin5-Oct-03 10:19
Navin5-Oct-03 10:19 
GeneralRe: Win 32 and MFC Problem Pin
spiritualfields5-Oct-03 12:04
spiritualfields5-Oct-03 12:04 
GeneralRe: Win 32 and MFC Problem Pin
Navin5-Oct-03 14:12
Navin5-Oct-03 14:12 
GeneralAdding Custom containers to Access Database Pin
CHERCHALI KARIM5-Oct-03 6:42
CHERCHALI KARIM5-Oct-03 6:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.