Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: please help us , it`s very hard Pin
Rajesh R Subramanian6-May-09 5:00
professionalRajesh R Subramanian6-May-09 5:00 
GeneralRe: please help us , it`s very hard Pin
trongduy7-May-09 4:18
trongduy7-May-09 4:18 
Generalit`s very hard so i can`t code, please code it for me Pin
trongduy8-May-09 4:21
trongduy8-May-09 4:21 
AnswerRe: please help us , it`s very hard Pin
Luc Pattyn6-May-09 5:17
sitebuilderLuc Pattyn6-May-09 5:17 
GeneralRe: please help us , it`s very hard Pin
trongduy7-May-09 4:19
trongduy7-May-09 4:19 
AnswerRe: please help us , it`s very hard Pin
David Crow6-May-09 8:52
David Crow6-May-09 8:52 
AnswerRe: please help us , it`s very hard Pin
enhzflep6-May-09 15:12
enhzflep6-May-09 15:12 
Questionchanging the color of my controls to white using OnCtlColor Pin
brucewayn6-May-09 4:52
brucewayn6-May-09 4:52 
I want my dialog backgroung color to be grey thus i'm using OnCtlColor event but the problem is that the controls like combo box or edit control are also geting colored with grey. Please tell me how can i change the color of my controls to white????

i used the below code where CBrush m_Brush;

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

pDC->SetBkColor(RGB(210,209,213));


//if(pWnd->GetDlgCtrlID() == IDC_COMBO1)
//{
pDC->SetBkColor(RGB(0,0,0));
//}
//if(pWnd->GetDlgCtrlID() == IDC_EDIT1)
//{
pDC->SetBkColor(RGB(0,0,0));
//}

return m_Brush;
}


BOOL CCTLColorDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_Brush.CreateSolidBrush(RGB(210,209,213));
return TRUE; // return TRUE unless you set the focus to a control
}
AnswerRe: changing the color of my controls to white using OnCtlColor Pin
Code-o-mat6-May-09 8:30
Code-o-mat6-May-09 8:30 
QuestionSynchronization issue Pin
Ahmed Charfeddine6-May-09 4:50
Ahmed Charfeddine6-May-09 4:50 
AnswerRe: Synchronization issue Pin
Stuart Dootson6-May-09 5:18
professionalStuart Dootson6-May-09 5:18 
QuestionHelp about Message loop please Pin
reply2am6-May-09 4:47
reply2am6-May-09 4:47 
QuestionProblem with LockWorkStation() function Pin
naro246-May-09 4:23
naro246-May-09 4:23 
AnswerRe: Problem with LockWorkStation() function ( not so much ) Pin
led mike6-May-09 4:29
led mike6-May-09 4:29 
GeneralRe: Problem with LockWorkStation() function ( not so much ) Pin
Rajesh R Subramanian6-May-09 4:45
professionalRajesh R Subramanian6-May-09 4:45 
GeneralRe: Problem with LockWorkStation() function ( not so much ) Pin
naro246-May-09 4:55
naro246-May-09 4:55 
GeneralRe: Problem with LockWorkStation() function ( not so much ) Pin
David Crow6-May-09 8:56
David Crow6-May-09 8:56 
GeneralRe: Welcome in the CP's memorable quotes list. Pin
CPallini6-May-09 10:23
mveCPallini6-May-09 10:23 
QuestionCreate Wrapper class Pin
anishkannan6-May-09 3:56
anishkannan6-May-09 3:56 
AnswerRe: Create Wrapper class Pin
Rajesh R Subramanian6-May-09 4:04
professionalRajesh R Subramanian6-May-09 4:04 
Questionwildcard interpretation Pin
William Engberts6-May-09 3:51
William Engberts6-May-09 3:51 
AnswerRe: wildcard interpretation Pin
Rajesh R Subramanian6-May-09 4:03
professionalRajesh R Subramanian6-May-09 4:03 
AnswerRe: wildcard interpretation Pin
Stuart Dootson6-May-09 4:56
professionalStuart Dootson6-May-09 4:56 
QuestionPostMessage with VISTA Pin
john56326-May-09 2:01
john56326-May-09 2:01 
AnswerRe: PostMessage with VISTA Pin
Stuart Dootson6-May-09 2:19
professionalStuart Dootson6-May-09 2:19 

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.