Click here to Skip to main content
15,889,116 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get Number of Logical Processors Pin
Nathan Blomquist17-Jul-03 6:48
Nathan Blomquist17-Jul-03 6:48 
GeneralDeclaration Question Pin
Brian van der Beek16-Jul-03 3:23
Brian van der Beek16-Jul-03 3:23 
GeneralRe: Declaration Question Pin
Ryan Binns16-Jul-03 4:07
Ryan Binns16-Jul-03 4:07 
GeneralRe: Declaration Question Pin
Brian van der Beek16-Jul-03 4:54
Brian van der Beek16-Jul-03 4:54 
GeneralRe: Declaration Question Pin
Ryan Binns16-Jul-03 4:59
Ryan Binns16-Jul-03 4:59 
GeneralCWebBrowser2 scrollbar question. Pin
Maximilien16-Jul-03 3:16
Maximilien16-Jul-03 3:16 
GeneralKeyboard indicator problems Pin
Artem Moroz16-Jul-03 3:16
Artem Moroz16-Jul-03 3:16 
GeneralProblem with WM_CTLCOLOR Pin
Cheickna16-Jul-03 2:56
Cheickna16-Jul-03 2:56 
Hi,

I want to use OnCtlColor message to change the backgroung color of a Dialog. I use it like this :

//in my header file :<br />
CBrush m_Brush;<br />
<br />
//in my source (cpp) file, in OnInitDialog :<br />
 m_Brush.CreateSolidBrush(RGB(212,212,226));<br />
<br />
//Then, in OnCtlColor message<br />
HBRUSH MyClass::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) <br />
{<br />
  return m_brush;<br />
}

It work, BUT THE BACKGROUNG COLOR OF ALL MY EDIT CONTROL ON THIS DIALOG are paint also by the bush.
Is There any way to keep the back color of an edit control to white by default ?

Thanks in advance
GeneralRe: Problem with WM_CTLCOLOR Pin
Ryan Binns16-Jul-03 3:01
Ryan Binns16-Jul-03 3:01 
GeneralRe: Problem with WM_CTLCOLOR Pin
wb16-Jul-03 3:16
wb16-Jul-03 3:16 
QuestionAny effective way to know a process is dead? Pin
anqin15-Jul-03 16:06
anqin15-Jul-03 16:06 
AnswerRe: Any effective way to know a process is dead? Pin
Phil Martin15-Jul-03 17:51
professionalPhil Martin15-Jul-03 17:51 
GeneralSMTP in MFC Pin
DougW4815-Jul-03 15:41
DougW4815-Jul-03 15:41 
GeneralRe: SMTP in MFC Pin
Ryan Binns15-Jul-03 20:44
Ryan Binns15-Jul-03 20:44 
GeneralRe: SMTP in MFC Pin
markkuk16-Jul-03 3:32
markkuk16-Jul-03 3:32 
GeneralRe: SMTP in MFC Pin
Ryan Binns16-Jul-03 4:19
Ryan Binns16-Jul-03 4:19 
GeneralRe: SMTP in MFC Pin
Ravi Bhavnani16-Jul-03 4:08
professionalRavi Bhavnani16-Jul-03 4:08 
GeneralRe: SMTP in MFC Pin
Lhenno Ferrari16-Jul-03 6:44
Lhenno Ferrari16-Jul-03 6:44 
Generaldrawing line numbers in MFC Pin
mcguile25715-Jul-03 15:12
mcguile25715-Jul-03 15:12 
GeneralRe: drawing line numbers in MFC Pin
Ryan Binns15-Jul-03 20:40
Ryan Binns15-Jul-03 20:40 
QuestionString Factorial?? Pin
Paul Farry15-Jul-03 15:06
professionalPaul Farry15-Jul-03 15:06 
AnswerRe: String Factorial?? Pin
David Crow16-Jul-03 3:20
David Crow16-Jul-03 3:20 
AnswerRe: String Factorial?? Pin
wb16-Jul-03 3:29
wb16-Jul-03 3:29 
GeneralCompressing &amp; then Overlaying one image on top of another Pin
Nirav Thakkar15-Jul-03 13:22
Nirav Thakkar15-Jul-03 13:22 
GeneralIMAPI Sample Code Pin
Martin Hinchy15-Jul-03 12:18
Martin Hinchy15-Jul-03 12:18 

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.