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

C / C++ / MFC

 
GeneralRe: delete a folder Pin
sudhir_Kumar3-Jun-08 23:47
sudhir_Kumar3-Jun-08 23:47 
GeneralRe: delete a folder Pin
mihai1233-Jun-08 23:52
mihai1233-Jun-08 23:52 
GeneralRe: delete a folder Pin
krmed4-Jun-08 0:40
krmed4-Jun-08 0:40 
AnswerRe: delete a folder Pin
ThatsAlok4-Jun-08 0:54
ThatsAlok4-Jun-08 0:54 
AnswerRe: delete a folder Pin
Hamid_RT4-Jun-08 21:05
Hamid_RT4-Jun-08 21:05 
QuestionListView OwnerDraw Pin
john56323-Jun-08 20:33
john56323-Jun-08 20:33 
AnswerRe: ListView OwnerDraw Pin
Akt_4_U3-Jun-08 20:43
Akt_4_U3-Jun-08 20:43 
GeneralRe: ListView OwnerDraw Pin
john56323-Jun-08 21:04
john56323-Jun-08 21:04 
I tried with NM_CUSTOMDRAW and it is working but how can I fill the some area of 4th subitem with desired color?

my code is here
CListCtrl &ListCtrl=GetListCtrl();
	LPNMLVCUSTOMDRAW pNMCD = reinterpret_cast<LPNMLVCUSTOMDRAW>(pNMHDR);
	int nVar=pNMCD->nmcd.dwItemSpec;

	*pResult = CDRF_DODEFAULT;

	switch(pNMCD->nmcd.dwDrawStage)
	{
	case CDDS_PREPAINT:
		*pResult= CDRF_NOTIFYITEMDRAW;
		return;
		
	case CDDS_ITEMPREPAINT:
		*pResult= CDRF_NOTIFYSUBITEMDRAW;
		 return;

	case (CDDS_ITEMPREPAINT | CDDS_SUBITEM):
		{
			if(pNMCD->iSubItem==4)
			{
				if(nVar%2)
					pNMCD->clrTextBk=RGB(232,232,244);
				else
					pNMCD->clrTextBk=RGB(255,255,255);
			}
		
			*pResult=CDRF_DODEFAULT;
			return;
		}

GeneralRe: ListView OwnerDraw Pin
sudhir_Kumar3-Jun-08 21:22
sudhir_Kumar3-Jun-08 21:22 
GeneralRe: ListView OwnerDraw Pin
Akt_4_U3-Jun-08 21:44
Akt_4_U3-Jun-08 21:44 
AnswerRe: ListView OwnerDraw Pin
Hamid_RT4-Jun-08 21:04
Hamid_RT4-Jun-08 21:04 
QuestionWhich macro to use for making a dll Pin
prithaa3-Jun-08 20:14
prithaa3-Jun-08 20:14 
AnswerRe: Which macro to use for making a dll Pin
Cedric Moonen3-Jun-08 20:17
Cedric Moonen3-Jun-08 20:17 
AnswerRe: Which macro to use for making a dll Pin
sudhir_Kumar3-Jun-08 21:10
sudhir_Kumar3-Jun-08 21:10 
GeneralRe: Which macro to use for making a dll Pin
prithaa3-Jun-08 22:25
prithaa3-Jun-08 22:25 
GeneralRe: Which macro to use for making a dll Pin
Naveen3-Jun-08 23:10
Naveen3-Jun-08 23:10 
GeneralRe: Which macro to use for making a dll Pin
ThatsAlok4-Jun-08 0:52
ThatsAlok4-Jun-08 0:52 
GeneralRe: Which macro to use for making a dll Pin
Naveen4-Jun-08 1:54
Naveen4-Jun-08 1:54 
AnswerRe: Which macro to use for making a dll Pin
ThatsAlok3-Jun-08 23:11
ThatsAlok3-Jun-08 23:11 
GeneralRe: Which macro to use for making a dll Pin
prithaa4-Jun-08 19:02
prithaa4-Jun-08 19:02 
QuestionCMFCPropertyGridProperty question Pin
followait3-Jun-08 19:36
followait3-Jun-08 19:36 
AnswerRe: CMFCPropertyGridProperty question Pin
sudhir_Kumar3-Jun-08 21:09
sudhir_Kumar3-Jun-08 21:09 
Questionproblem with string loading Pin
Mohanraj D3-Jun-08 19:28
Mohanraj D3-Jun-08 19:28 
AnswerRe: problem with string loading Pin
ThatsAlok3-Jun-08 20:14
ThatsAlok3-Jun-08 20:14 
GeneralRe: problem with string loading Pin
sudhir_Kumar3-Jun-08 21:01
sudhir_Kumar3-Jun-08 21:01 

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.