I am doing a simple dialog box that has a status reply and I want to change the colour of the text to yellow for a caution, red for an error and say green if it is okay. I have tried and failed to use Settextcolor() in the dialog box. I have been using Visual Studio 6,7,and 8. Old style C and MFC.

Recommended Answers

All 2 Replies

I suppose the canonical example is the example at the bottom of CWnd::OnCtlColor on MSDN.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.