Re: Help please. Text color
Not too sure about the sound, but if you want to color text in a dialog box:
1. Use Class Wizard to create a message handler for WM_CTLCOLOR.
2. Then use the following as an example:
HBRUSH CYourDialogPg::OnCtlColor(CDC *pDC, CWnd *pWnd, UINT nCtlColor)
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
int nCtrl = pWnd ->GetDlgCtrlID();
if (nCtrl == IDC_YOUR_CONTROL_ID)
"C++ DuDe" <email@example.com> wrote:
>Hey i want to play some sound in my program, but i don't know the code for
>it, i tryed all examples i see in this newsgroup butnone work, can anybody
>help me?, and also for text color, i seen programs that have different text
>color, how you do that??
>Regads from the C++ DuDe
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL