Click here to Skip to main content
15,912,504 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: managed code strange behaviour.. Pin
montiee24-Sep-08 1:58
montiee24-Sep-08 1:58 
QuestionCDateTimeCtrl Pin
john563223-Sep-08 3:03
john563223-Sep-08 3:03 
AnswerRe: CDateTimeCtrl Pin
David Crow23-Sep-08 3:12
David Crow23-Sep-08 3:12 
QuestionRe: CDateTimeCtrl Pin
CPallini23-Sep-08 3:15
mveCPallini23-Sep-08 3:15 
AnswerRe: CDateTimeCtrl Pin
john563223-Sep-08 4:30
john563223-Sep-08 4:30 
GeneralRe: CDateTimeCtrl Pin
David Crow23-Sep-08 5:47
David Crow23-Sep-08 5:47 
QuestionCTreeCtrl strange behaviour Pin
bhanu_850923-Sep-08 2:31
bhanu_850923-Sep-08 2:31 
AnswerRe: CTreeCtrl strange behaviour Pin
SandipG 23-Sep-08 2:41
SandipG 23-Sep-08 2:41 
you should put the conditions accordingly on nCtlColor
valid values are :

  • CTLCOLOR_BTN Button control
  • CTLCOLOR_DLG Dialog box
  • CTLCOLOR_EDIT Edit control
  • CTLCOLOR_LISTBOX List-box control
  • CTLCOLOR_MSGBOX Message box
  • CTLCOLOR_SCROLLBAR Scroll-bar control
  • CTLCOLOR_STATIC Static control

use CTreeCtrl member function SetBkColor(..) to set the background color of tree control.
[added]
one more correction after the conditions return CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
for default case which you don't wish to handle.

bhanu_8509 wrote:
return m_brush; // Paint the dialog black!!

// TODO: Return a different brush if the default is not desired
return hbr;

consecutive returns does not make any sense.

[/added]

Regards,
Sandip.

QuestionProblem in getting hash values [modified] Pin
Aryan S23-Sep-08 2:22
Aryan S23-Sep-08 2:22 
QuestionMulticolumn CComboBox? Pin
bosfan23-Sep-08 1:37
bosfan23-Sep-08 1:37 
AnswerRe: Multicolumn CComboBox? Pin
Rajesh R Subramanian23-Sep-08 1:48
professionalRajesh R Subramanian23-Sep-08 1:48 
GeneralRe: Multicolumn CComboBox? Pin
bosfan23-Sep-08 2:03
bosfan23-Sep-08 2:03 
QuestionRasDial() howto Pin
eusto23-Sep-08 1:28
eusto23-Sep-08 1:28 
QuestionRe: RasDial() howto Pin
David Crow23-Sep-08 3:17
David Crow23-Sep-08 3:17 
AnswerRe: RasDial() howto Pin
eusto23-Sep-08 3:34
eusto23-Sep-08 3:34 
QuestionRe: RasDial() howto Pin
David Crow23-Sep-08 3:40
David Crow23-Sep-08 3:40 
AnswerRe: RasDial() howto Pin
eusto23-Sep-08 4:38
eusto23-Sep-08 4:38 
GeneralRe: RasDial() howto Pin
David Crow23-Sep-08 4:46
David Crow23-Sep-08 4:46 
GeneralRe: RasDial() howto Pin
eusto23-Sep-08 4:57
eusto23-Sep-08 4:57 
Questionchange Static text font size Pin
Dhiraj kumar Saini23-Sep-08 0:13
Dhiraj kumar Saini23-Sep-08 0:13 
AnswerRe: change Static text font size Pin
KarstenK23-Sep-08 0:28
mveKarstenK23-Sep-08 0:28 
Questionside by side configration error Pin
VCProgrammer22-Sep-08 23:55
VCProgrammer22-Sep-08 23:55 
AnswerRe: side by side configration error Pin
toxcct23-Sep-08 0:03
toxcct23-Sep-08 0:03 
GeneralRe: side by side configration error Pin
VCProgrammer23-Sep-08 0:07
VCProgrammer23-Sep-08 0:07 
GeneralRe: side by side configration error Pin
Rajesh R Subramanian23-Sep-08 0:08
professionalRajesh R Subramanian23-Sep-08 0:08 

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.