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

C / C++ / MFC

 
GeneralRe: Change a Unicode project to MBCS using VS2005 [modified] Pin
Justin Tay25-Jun-06 0:37
Justin Tay25-Jun-06 0:37 
GeneralRe: Change a Unicode project to MBCS using VS2005 Pin
cv_k3n25-Jun-06 0:54
cv_k3n25-Jun-06 0:54 
GeneralRe: Change a Unicode project to MBCS using VS2005 Pin
cv_k3n26-Jun-06 10:28
cv_k3n26-Jun-06 10:28 
GeneralRe: Change a Unicode project to MBCS using VS2005 Pin
Justin Tay27-Jun-06 5:06
Justin Tay27-Jun-06 5:06 
Questioncann't add a project to the current workspace Pin
old_dustman24-Jun-06 22:48
old_dustman24-Jun-06 22:48 
AnswerRe: cann't add a project to the current workspace Pin
old_dustman24-Jun-06 23:18
old_dustman24-Jun-06 23:18 
GeneralRe: cann't add a project to the current workspace Pin
Jun Du26-Jun-06 4:51
Jun Du26-Jun-06 4:51 
QuestionHow to change the icon i listctrl? Pin
xuwenq8824-Jun-06 22:11
xuwenq8824-Jun-06 22:11 
codes:
<br />
m_imagelist1.Create(16, 16, ILC_COLOR32, 1, 1);<br />
CBitmap *bmp=new CBitmap;<br />
	CString str;<br />
	for(int i=1; i<109; i++)<br />
	{<br />
		str.Format("qqface\\%d_m.bmp", i);<br />
		bmp->m_hObject=(HBITMAP)LoadImage<br />
			(NULL, str, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);<br />
<br />
		m_imagelist1.Add(bmp, RGB(0, 0, 0));<br />
		m_treeQunimage.Add(bmp, RGB(0, 0, 0));<br />
<br />
	}<br />
	delete bmp;	<br />
m_List1.SetImageList(&m_imagelist2, LVSIL_SMALL);<br />
m_List1.DeleteAllItems();<br />
		int nItem;<br />
		m_List1.SetIconSpacing(50, 50);<br />
		for(int i=1; i<109; i++)<br />
		{<br />
nItem=m_List1.InsertItem(2*i,"hello", i);<br />
		}<br />


now the list have a series of icons !

if I double click one icon, I want change this icon, what shall I do?will the following codes effective?
:


Wating for answers online, very urgent!

Just my interest for these common things
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 
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 

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.