Click here to Skip to main content
15,927,344 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ASM instruction /opcode: normalize a double value Pin
Andrzej Markowski9-Oct-04 21:19
Andrzej Markowski9-Oct-04 21:19 
QuestionHow to tell what dlls are mapped into a process Pin
Dev5789-Oct-04 9:45
Dev5789-Oct-04 9:45 
AnswerRe: How to tell what dlls are mapped into a process Pin
Michael Dunn9-Oct-04 16:54
sitebuilderMichael Dunn9-Oct-04 16:54 
QuestionHow to change the Back ground color of SDI Application Pin
Azghar Hussain9-Oct-04 8:18
professionalAzghar Hussain9-Oct-04 8:18 
AnswerRe: How to change the Back ground color of SDI Application Pin
Ravi Bhavnani9-Oct-04 8:26
professionalRavi Bhavnani9-Oct-04 8:26 
GeneralColoring text of a checkbox Pin
Tommy2k9-Oct-04 8:09
Tommy2k9-Oct-04 8:09 
GeneralRe: Coloring text of a checkbox Pin
Ravi Bhavnani9-Oct-04 8:23
professionalRavi Bhavnani9-Oct-04 8:23 
GeneralRe: Coloring text of a checkbox Pin
7stud10-Oct-04 23:55
7stud10-Oct-04 23:55 
Hi,

I'm a beginner but I tried to figure it out for you. The following code doesn't work, but it's what I came up with, and maybe it will give you some ideas. I have a simple dialog box with a few controls and I added this function to the Dialog class(CCodeProject_Dialog2Dlg):

HBRUSH CCodeProject_Dialog2Dlg::OnCtlColor(CDC *pDC, CWnd *pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);

if(pWnd->GetDlgCtrlID() == IDC_WIN98)
{
pDC->SetTextColor(RGB(255,0,0));
pDC->SetBkMode(TRANSPARENT);

}

return hbr;

}

How did you set the background color?

I can't believe the previous poster wouldn't help you. I clicked on the link he posted, and any of the author's of those button programs should be able to tell you how to do that.

Also, what's up with a programming forum that doesn't allow you to post indented code?







GeneralWMF -> PDF Pin
Abbas_Riazi9-Oct-04 6:43
professionalAbbas_Riazi9-Oct-04 6:43 
GeneralRe: WMF -> PDF Pin
Ravi Bhavnani9-Oct-04 7:02
professionalRavi Bhavnani9-Oct-04 7:02 
GeneralRe: WMF -> PDF Pin
Abbas_Riazi9-Oct-04 7:24
professionalAbbas_Riazi9-Oct-04 7:24 
GeneralDebug ASSERT failure Pin
Leyu9-Oct-04 6:39
Leyu9-Oct-04 6:39 
GeneralRe: Debug ASSERT failure Pin
Neville Franks9-Oct-04 12:43
Neville Franks9-Oct-04 12:43 
GeneralRe: Debug ASSERT failure Pin
Leyu10-Oct-04 7:51
Leyu10-Oct-04 7:51 
GeneralRe: Debug ASSERT failure Pin
Neville Franks10-Oct-04 10:22
Neville Franks10-Oct-04 10:22 
GeneralRe: Debug ASSERT failure Pin
Leyu12-Oct-04 7:07
Leyu12-Oct-04 7:07 
QuestionDrawline fucntion? Pin
Tommy2k9-Oct-04 6:33
Tommy2k9-Oct-04 6:33 
AnswerRe: Drawline fucntion? Pin
Ravi Bhavnani9-Oct-04 6:42
professionalRavi Bhavnani9-Oct-04 6:42 
GeneralRe: Drawline fucntion? Pin
Tommy2k9-Oct-04 6:47
Tommy2k9-Oct-04 6:47 
GeneralRe: Drawline fucntion? Pin
Ravi Bhavnani9-Oct-04 6:54
professionalRavi Bhavnani9-Oct-04 6:54 
GeneralRe: Drawline fucntion? Pin
Tommy2k9-Oct-04 7:09
Tommy2k9-Oct-04 7:09 
GeneralGetting the Audio Stereo Mixer or Line In Input Pin
Nikhil Wason9-Oct-04 5:38
Nikhil Wason9-Oct-04 5:38 
Questionhow do i export multiple functions in dll Pin
Lanre Ogunkola9-Oct-04 5:22
Lanre Ogunkola9-Oct-04 5:22 
AnswerRe: how do i export multiple functions in dll Pin
Abbas_Riazi9-Oct-04 6:47
professionalAbbas_Riazi9-Oct-04 6:47 
AnswerRe: how do i export multiple functions in dll Pin
Abbas_Riazi9-Oct-04 6:51
professionalAbbas_Riazi9-Oct-04 6:51 

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.