I using MFC AppWizard and created the SDI application 
I need to set colour for the outputwnd debug tab in some sequence 
for example 
if any wrong value entered in the some control
 i need to display text in RED stating that invalid value entered 

if login done welcome message in GREEN and so on 

I tried to use DrawItem 
I am not able to set the listBox stye as LBS\_OWNERDRAWFIXED|LBS\_HASSTRING
on AddString i am getting error

How to set colour in child Clistbox with owner CMFCTabCtrl Class