Click here to Skip to main content
16,005,169 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems with pragma comment Pin
cmk16-Apr-04 1:05
cmk16-Apr-04 1:05 
GeneralRe: Problems with pragma comment Pin
steven1116-Apr-04 3:45
steven1116-Apr-04 3:45 
QuestionTimers??? Pin
MrNiceBerG14-Apr-04 20:34
MrNiceBerG14-Apr-04 20:34 
AnswerRe: Timers??? Pin
sudeesh14-Apr-04 22:47
sudeesh14-Apr-04 22:47 
QuestionHow to Stretch Icon and Display Cursors Pin
Azghar Hussain14-Apr-04 20:30
professionalAzghar Hussain14-Apr-04 20:30 
AnswerRe: How to Stretch Icon and Display Cursors Pin
Roger Allen15-Apr-04 1:40
Roger Allen15-Apr-04 1:40 
GeneralRe: How to Stretch Icon and Display Cursors Pin
basementman15-Apr-04 4:22
basementman15-Apr-04 4:22 
QuestionHOW to color different control in dialog? Pin
vividtang14-Apr-04 16:54
vividtang14-Apr-04 16:54 
please have a look at my programm below:
BOOL CMy06aDialog::OnInitDialog()
{
CBrush m_redBrush(RGB(255,0,0));

CBrush m_yellowBrush(RGB(255,255,0));
.........
}
HBRUSH CMy06aDialog::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{ if(nCtlColor==CTLCOLOR_DLG )
{pDC->SetBkColor(RGB(255,0,0));
return m_redBrush;
}

if(nCtlColor==CTLCOLOR_EDIT)
{pDC->SetBkColor(RGB(255,255,0));
return m_yellowBrush;
}
return CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
}
but the result is :only the edit control ,their background color is yellw as i expected,but dialog background color is still gray,why?
AnswerRe: HOW to color different control in dialog? Pin
Steve Mayfield14-Apr-04 17:31
Steve Mayfield14-Apr-04 17:31 
GeneralRe: HOW to color different control in dialog? Pin
vividtang14-Apr-04 20:38
vividtang14-Apr-04 20:38 
GeneralException when free the socket memory Pin
Fox Ray14-Apr-04 16:16
Fox Ray14-Apr-04 16:16 
GeneralRe: Exception when free the socket memory Pin
toxcct14-Apr-04 21:07
toxcct14-Apr-04 21:07 
GeneralRe: Exception when free the socket memory Pin
Fox Ray15-Apr-04 14:16
Fox Ray15-Apr-04 14:16 
GeneralRe: Exception when free the socket memory Pin
toxcct15-Apr-04 21:50
toxcct15-Apr-04 21:50 
GeneralOnline Update Pin
DanYELL14-Apr-04 16:12
DanYELL14-Apr-04 16:12 
GeneralRe: Online Update Pin
Andrew Walker14-Apr-04 18:02
Andrew Walker14-Apr-04 18:02 
GeneralEffects of SetParent on MFC Message Mapping Pin
gUrM33T14-Apr-04 15:48
gUrM33T14-Apr-04 15:48 
GeneralRe: Effects of SetParent on MFC Message Mapping Pin
Antony M Kancidrowski15-Apr-04 3:43
Antony M Kancidrowski15-Apr-04 3:43 
QuestionHow can i design application, can toggle like vc dialog? Pin
Member 2752114-Apr-04 15:33
Member 2752114-Apr-04 15:33 
AnswerRe: How can i design application, can toggle like vc dialog? Pin
Christian Graus14-Apr-04 15:47
protectorChristian Graus14-Apr-04 15:47 
AnswerRe: How can i design application, can toggle like vc dialog? Pin
Prakash Nadar14-Apr-04 15:52
Prakash Nadar14-Apr-04 15:52 
AnswerRe: How can i design application, can toggle like vc dialog? Pin
Member 2752114-Apr-04 16:13
Member 2752114-Apr-04 16:13 
QuestionHow to read STDF file format using VC++ Pin
mhar14-Apr-04 15:32
professionalmhar14-Apr-04 15:32 
GeneralC++ class typecasting Pin
Coremn14-Apr-04 14:10
Coremn14-Apr-04 14:10 
GeneralRe: C++ class typecasting Pin
Ryan Binns14-Apr-04 14:16
Ryan Binns14-Apr-04 14:16 

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.