Click here to Skip to main content
15,902,445 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalmy solution (pretty neat i think) Pin
Bernhard17-Jul-03 4:14
Bernhard17-Jul-03 4:14 
Generalpolling for data on serial port Pin
butterbean73016-Jul-03 4:50
butterbean73016-Jul-03 4:50 
GeneralRe: polling for data on serial port Pin
John R. Shaw16-Jul-03 6:21
John R. Shaw16-Jul-03 6:21 
GeneralDisplay cad drawings Pin
BigBabyJesus16-Jul-03 4:09
BigBabyJesus16-Jul-03 4:09 
GeneralRe: Display cad drawings Pin
Ryan Binns16-Jul-03 4:21
Ryan Binns16-Jul-03 4:21 
GeneralRussian string to/from file Pin
Bartosz Bien16-Jul-03 3:41
Bartosz Bien16-Jul-03 3:41 
GeneralRe: Russian string to/from file Pin
Ryan Binns16-Jul-03 4:11
Ryan Binns16-Jul-03 4:11 
GeneralGet Number of Logical Processors Pin
Nathan Blomquist16-Jul-03 3:41
Nathan Blomquist16-Jul-03 3:41 
GeneralRe: Get Number of Logical Processors Pin
valikac16-Jul-03 4:46
valikac16-Jul-03 4:46 
GeneralRe: Get Number of Logical Processors Pin
Nathan Blomquist16-Jul-03 7:41
Nathan Blomquist16-Jul-03 7:41 
GeneralRe: Get Number of Logical Processors Pin
basementman16-Jul-03 4:55
basementman16-Jul-03 4:55 
GeneralRe: Get Number of Logical Processors Pin
Nathan Blomquist16-Jul-03 7:41
Nathan Blomquist16-Jul-03 7:41 
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 

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.