Click here to Skip to main content
15,892,293 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please give me help. Pin
Rashid Thadha5-Sep-01 11:55
Rashid Thadha5-Sep-01 11:55 
GeneralRe: Please give me help. Pin
LoveInSnowing5-Sep-01 18:35
LoveInSnowing5-Sep-01 18:35 
GeneralRe: Please give me help. Pin
Martin Bohring5-Sep-01 21:28
Martin Bohring5-Sep-01 21:28 
GeneralA Simple Question Pin
Steve Thresher5-Sep-01 6:14
Steve Thresher5-Sep-01 6:14 
GeneralRe: A Simple Question Pin
Oliver Anhuth5-Sep-01 20:18
Oliver Anhuth5-Sep-01 20:18 
GeneralListCtrl Pin
Bernard Chayer5-Sep-01 5:47
professionalBernard Chayer5-Sep-01 5:47 
GeneralRe: ListCtrl Pin
Michael Dunn5-Sep-01 7:19
sitebuilderMichael Dunn5-Sep-01 7:19 
GeneralRe: ListCtrl Pin
Bernard Chayer5-Sep-01 7:49
professionalBernard Chayer5-Sep-01 7:49 
Hi Mike,

Thank's for your answer Smile | :)

I've already tried it, but it still do not work, here's what I've done...

BEGIN_MESSAGE_MAP(CAgendaView, CListView)
//{{AFX_MSG_MAP(CAgendaView)
//}}AFX_MSG_MAP
ON_NOTIFY_REFLECT(NM_CUSTOMDRAW, OnCustomDraw)
END_MESSAGE_MAP()

/****************************************************************************
*
*
*
*
****************************************************************************/
void CAgendaView::OnCustomDraw( NMHDR* pNMHDR, LRESULT* pResult )
{
LPNMLVCUSTOMDRAW lplvcd = (LPNMLVCUSTOMDRAW )pNMHDR;

if( lplvcd->nmcd.dwDrawStage == CDDS_PREPAINT )
*pResult = CDRF_NOTIFYITEMDRAW;
else
{
if( lplvcd->nmcd.dwDrawStage == CDDS_ITEMPREPAINT )
{
if( lplvcd->nmcd.dwItemSpec == 2 )
{
lplvcd->clrText = RGB( 0, 0, 255 );
*pResult = CDRF_NEWFONT;
}
else
*pResult = CDRF_DODEFAULT;
}
else
*pResult = 0;
}
}

Thank's
Bernard

New to VC++
GeneralRe: ListCtrl Pin
Michael Dunn5-Sep-01 15:28
sitebuilderMichael Dunn5-Sep-01 15:28 
GeneralRe: ListCtrl Pin
Bernard Chayer6-Sep-01 5:00
professionalBernard Chayer6-Sep-01 5:00 
GeneralRe: ListCtrl Pin
Michael Dunn6-Sep-01 6:35
sitebuilderMichael Dunn6-Sep-01 6:35 
GeneralRe: ListCtrl Pin
Bernard Chayer6-Sep-01 7:05
professionalBernard Chayer6-Sep-01 7:05 
Generaltoolbar and hyperlinks Pin
SnapRick5-Sep-01 4:36
SnapRick5-Sep-01 4:36 
GeneralRe: toolbar and hyperlinks Pin
Erik Thompson5-Sep-01 10:45
sitebuilderErik Thompson5-Sep-01 10:45 
GeneralText color in a CRichEditCtrl Pin
5-Sep-01 4:00
suss5-Sep-01 4:00 
GeneralRe: Text color in a CRichEditCtrl Pin
billb21125-Sep-01 7:15
billb21125-Sep-01 7:15 
QuestionHow to get all machine's MAC Address at Winnt LAN? Pin
5-Sep-01 3:51
suss5-Sep-01 3:51 
AnswerRe: How to get all machine's MAC Address at Winnt LAN? Pin
5-Sep-01 6:25
suss5-Sep-01 6:25 
QuestionWhat's wrong with this code? Pin
5-Sep-01 3:20
suss5-Sep-01 3:20 
AnswerRe: What's wrong with this code? Pin
5-Sep-01 3:42
suss5-Sep-01 3:42 
AnswerRe: What's wrong with this code? Pin
13-Dec-01 4:12
suss13-Dec-01 4:12 
GeneralDisabling ALT-TAB ... Pin
Hadi Rezaee5-Sep-01 3:19
Hadi Rezaee5-Sep-01 3:19 
GeneralRe: Disabling ALT-TAB ... Pin
Tim Deveaux5-Sep-01 10:57
Tim Deveaux5-Sep-01 10:57 
GeneralRe: Disabling ALT-TAB ... Pin
Hadi Rezaee5-Sep-01 17:45
Hadi Rezaee5-Sep-01 17:45 
GeneralRe: Disabling ALT-TAB ... Pin
Mike Nordell7-Sep-01 11:15
Mike Nordell7-Sep-01 11:15 

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.