Click here to Skip to main content
15,901,426 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: "Changing Editbox color" Pin
prasad_som14-Mar-07 2:32
prasad_som14-Mar-07 2:32 
QuestionRe: "Changing Editbox color" Pin
Parthi_Appu13-Mar-07 21:17
Parthi_Appu13-Mar-07 21:17 
AnswerRe: "Changing Editbox color" Pin
harsh_296113-Mar-07 22:30
harsh_296113-Mar-07 22:30 
GeneralRe: "Changing Editbox color" Pin
Parthi_Appu13-Mar-07 23:57
Parthi_Appu13-Mar-07 23:57 
GeneralRe: "Changing Editbox color" Pin
harsh_296114-Mar-07 0:14
harsh_296114-Mar-07 0:14 
AnswerRe: "Changing Editbox color" Pin
Hamid_RT13-Mar-07 21:19
Hamid_RT13-Mar-07 21:19 
AnswerRe: "Changing Editbox color" [modified] Pin
_AnsHUMAN_ 13-Mar-07 22:47
_AnsHUMAN_ 13-Mar-07 22:47 
AnswerRe: "Changing Editbox color" Pin
ThatsAlok15-Mar-07 0:32
ThatsAlok15-Mar-07 0:32 
harsh_2961 wrote:
When i change the background color of my dialog, along with that the color of the edit box in my dialog is changing.. but i want the editbox color to be white only..

HBRUSH CFileopenDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
 HBRUSH OrgBrush=CreateSolidBrush(RGB(255,255,255)); // make it white
  if(pWnd->GetSafeHwnd() == GetDlgItem(IDC_EDIT1)->GetSafeHwnd())
{
  return OrgBrush;
}
return m_brush;
}




"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
Global Interface Table: An Easy Way to Marshal an Interface Pointer[new]
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You

AnswerRe: "Changing Editbox color" Pin
prasad_som15-Mar-07 2:15
prasad_som15-Mar-07 2:15 
QuestionI need to check the mail id is valid or not (existed or not) and whether password is correct or not? Pin
G Haranadh13-Mar-07 20:15
G Haranadh13-Mar-07 20:15 
AnswerRe: I need to check the mail id is valid or not (existed or not) and whether password is correct or not? Pin
G Haranadh13-Mar-07 23:11
G Haranadh13-Mar-07 23:11 
GeneralRe: I need to check the mail id is valid or not (existed or not) and whether password is correct or not? Pin
G Haranadh14-Mar-07 7:01
G Haranadh14-Mar-07 7:01 
QuestionCString: Heap Vs Stack? Pin
devvvy13-Mar-07 19:52
devvvy13-Mar-07 19:52 
AnswerRe: CString: Heap Vs Stack? Pin
Michael Dunn13-Mar-07 20:05
sitebuilderMichael Dunn13-Mar-07 20:05 
AnswerRe: CString: Heap Vs Stack? Pin
prasad_som13-Mar-07 21:18
prasad_som13-Mar-07 21:18 
Questioncancel dialog Pin
deeps_cute13-Mar-07 19:17
deeps_cute13-Mar-07 19:17 
AnswerRe: cancel dialog Pin
Parthi_Appu13-Mar-07 19:23
Parthi_Appu13-Mar-07 19:23 
GeneralRe: cancel dialog -- ok then how Pin
deeps_cute13-Mar-07 21:22
deeps_cute13-Mar-07 21:22 
AnswerRe: cancel dialog -- ok then how Pin
Parthi_Appu13-Mar-07 21:30
Parthi_Appu13-Mar-07 21:30 
GeneralRe: cancel dialog -- ok then how Pin
deeps_cute13-Mar-07 21:37
deeps_cute13-Mar-07 21:37 
GeneralRe: cancel dialog -- ok then how Pin
Parthi_Appu13-Mar-07 21:46
Parthi_Appu13-Mar-07 21:46 
GeneralRe: cancel dialog Pin
deeps_cute13-Mar-07 21:54
deeps_cute13-Mar-07 21:54 
GeneralRe: cancel dialog Pin
Parthi_Appu13-Mar-07 21:57
Parthi_Appu13-Mar-07 21:57 
GeneralRe: cancel dialog Pin
deeps_cute13-Mar-07 23:06
deeps_cute13-Mar-07 23:06 
GeneralRe: cancel dialog Pin
Parthi_Appu13-Mar-07 23:45
Parthi_Appu13-Mar-07 23:45 

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.