Click here to Skip to main content
15,898,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to change the icon i listctrl? Pin
xuwenq8824-Jun-06 22:11
xuwenq8824-Jun-06 22:11 
AnswerRe: How to change the icon i listctrl? Pin
Hamid_RT25-Jun-06 3:06
Hamid_RT25-Jun-06 3:06 
GeneralRe: How to change the icon i listctrl? Pin
xuwenq8825-Jun-06 4:27
xuwenq8825-Jun-06 4:27 
GeneralRe: How to change the icon i listctrl? Pin
Hamid_RT25-Jun-06 18:16
Hamid_RT25-Jun-06 18:16 
AnswerRe: How to change the icon i listctrl? Pin
Michael Dunn25-Jun-06 7:50
sitebuilderMichael Dunn25-Jun-06 7:50 
GeneralRe: How to change the icon i listctrl? Pin
xuwenq8825-Jun-06 17:43
xuwenq8825-Jun-06 17:43 
GeneralRe: How to change the icon i listctrl? Pin
Michael Dunn25-Jun-06 17:45
sitebuilderMichael Dunn25-Jun-06 17:45 
GeneralRe: How to change the icon i listctrl? Pin
xuwenq8826-Jun-06 5:50
xuwenq8826-Jun-06 5:50 
Thank you very much!
I have done it following:

Item=new LVITEM;<br />
	oldImage=faceNO[m_nCurrentSel/2]-1;<br />
	Item->mask=LVIF_IMAGE	;<br />
	Item->iItem=m_nCurrentSel ;<br />
	nHop=0;<br />
<br />
	SetTimer(2, 400, NULL);<br />
	// hidden<br />
	SetTimer(3, 300, NULL);<br />
	// display


////////////////////////////////////////////////////<br />
if(nIDEvent==2)<br />
	{<br />
		if(nHop++>4)<br />
		{<br />
			KillTimer(2);<br />
			KillTimer(3);<br />
			return;<br />
		}<br />
		Item->iImage=-1;<br />
		m_List1.SetItem(Item);<br />
		m_List1.RedrawItems(Item->iItem, Item->iItem);<br />
	}<br />
	else if(nIDEvent==3)<br />
	{<br />
		Item->iImage=oldImage;<br />
		m_List1.SetItem(Item);<br />
		m_List1.RedrawItems(Item->iItem, Item->iItem);<br />
	}

,but feel the effect is not comfortable!
My old idea is to make an icon visible and hidden by turns
it's so uncomfortable, I can see the icon twinkling!
How to prevent this happen?

Hope for some helps !

Just my interest for these common things
QuestionCRecordset problem Pin
moodsey21124-Jun-06 22:06
moodsey21124-Jun-06 22:06 
AnswerRe: CRecordset problem Pin
ovidiucucu25-Jun-06 1:30
ovidiucucu25-Jun-06 1:30 
AnswerRe: CRecordset problem Pin
ovidiucucu25-Jun-06 2:18
ovidiucucu25-Jun-06 2:18 
QuestionHelp! How to add combobox into a listctrl ? Pin
xjbetter24-Jun-06 21:51
xjbetter24-Jun-06 21:51 
AnswerRe: Help! How to add combobox into a listctrl ? Pin
ovidiucucu25-Jun-06 1:44
ovidiucucu25-Jun-06 1:44 
AnswerRe: Help! How to add combobox into a listctrl ? Pin
Hamid_RT25-Jun-06 1:53
Hamid_RT25-Jun-06 1:53 
Questionvisual studio 2005 problem with converting strings Pin
cv_k3n24-Jun-06 19:45
cv_k3n24-Jun-06 19:45 
AnswerRe: visual studio 2005 problem with converting strings [modified] Pin
Stephen Hewitt24-Jun-06 19:50
Stephen Hewitt24-Jun-06 19:50 
GeneralRe: visual studio 2005 problem with converting strings Pin
cv_k3n24-Jun-06 20:03
cv_k3n24-Jun-06 20:03 
GeneralRe: visual studio 2005 problem with converting strings [modified] Pin
Stephen Hewitt24-Jun-06 20:07
Stephen Hewitt24-Jun-06 20:07 
GeneralRe: visual studio 2005 problem with converting strings Pin
cv_k3n24-Jun-06 20:36
cv_k3n24-Jun-06 20:36 
GeneralRe: visual studio 2005 problem with converting strings [modified] Pin
Stephen Hewitt24-Jun-06 21:24
Stephen Hewitt24-Jun-06 21:24 
GeneralRe: visual studio 2005 problem with converting strings Pin
cv_k3n24-Jun-06 22:05
cv_k3n24-Jun-06 22:05 
GeneralRe: visual studio 2005 problem with converting strings Pin
Stephen Hewitt24-Jun-06 22:09
Stephen Hewitt24-Jun-06 22:09 
GeneralRe: visual studio 2005 problem with converting strings Pin
cv_k3n24-Jun-06 23:25
cv_k3n24-Jun-06 23:25 
GeneralRe: visual studio 2005 problem with converting strings Pin
Stephen Hewitt24-Jun-06 23:32
Stephen Hewitt24-Jun-06 23:32 
GeneralRe: visual studio 2005 problem with converting strings Pin
cv_k3n25-Jun-06 0:15
cv_k3n25-Jun-06 0: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.