Article View: comp.windows.ms.programmer
Article #1865QUESTION: Changing color of Edit Control text
From: SSL Guest User
Date: Tue, 26 Mar 1991 18:11
Date: Tue, 26 Mar 1991 18:11
25 lines
1093 bytes
1093 bytes
Dear net, I hope this hasn't been asked too many times already (i've been reading this group for a month or so...) How does one change the color of text entered and displayed in a dialog box edit control? I've tried the following (which failed as predicted by the SDK manuals) hDC = GetDC(GetDlgItem(hDlg, controlid)); SetTextColor(hDC, RGB(blah, blah, blah)); ReleaseDC(hDC, blah blah); SetTextColor() is apparently intended for TextOut() type operations. I'm trying to show text in RED for a money field that has gone negative (whippeeee). Please email and i'll post the answer if anyone gives a hoot. Thanks for your time, Thomas thomas@hpssl40.mayfield.hp.com
Technical Details
Message-ID:
<25920006@hpkslx.mayfield.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpda!hpcuhb!hpkslx!sslShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpda!hpcuhb!hpkslx!ssl From: ssl@hpkslx.mayfield.HP.COM (SSL Guest User) Newsgroups: comp.windows.ms.programmer Subject: QUESTION: Changing color of Edit Control text Message-ID: <25920006@hpkslx.mayfield.HP.COM> Date: 26 Mar 91 18:11:47 GMT Organization: HP Response Center Lab Lines: 25