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

C / C++ / MFC

 
AnswerRe: How to Customize the IDE of Visual C++ Pin
prasad_som28-Mar-07 22:57
prasad_som28-Mar-07 22:57 
QuestionUpgrade VC++ Application to VC++.NET Pin
deepasaral28-Mar-07 22:13
deepasaral28-Mar-07 22:13 
AnswerRe: Upgrade VC++ Application to VC++.NET [modified] Pin
prasad_som28-Mar-07 22:50
prasad_som28-Mar-07 22:50 
GeneralRe: Upgrade VC++ Application to VC++.NET Pin
toxcct28-Mar-07 22:54
toxcct28-Mar-07 22:54 
GeneralRe: Upgrade VC++ Application to VC++.NET Pin
prasad_som28-Mar-07 22:56
prasad_som28-Mar-07 22:56 
QuestionCTreeView control - problem in recognize item that was click. Pin
Yanshof28-Mar-07 21:43
Yanshof28-Mar-07 21:43 
QuestionRe: CTreeView control - problem in recognize item that was click. Pin
prasad_som28-Mar-07 23:13
prasad_som28-Mar-07 23:13 
QuestionListview image problem Pin
amitmistry_petlad 28-Mar-07 21:24
amitmistry_petlad 28-Mar-07 21:24 
In the first column,I have put the image. And in the second column I have used both text and image
when user insert item in the list, but it's display only the name of file.The image is not display, Please Look at the source code.

LvItem.iItem=0;            <br />
LvItem.iSubItem=0;<br />
if(metaFileReaderEnc->m_bIsDRM)<br />
{<br />
	ImageList_AddIcon(hSmall, hIcon);<br />
	LvItem.iImage=2;<br />
	LvItem.mask =LVIF_IMAGE;								<br />
}else<br />
{<br />
	LvItem.pszText=_T("");				<br />
	LvItem.mask =LVIF_TEXT;<br />
}<br />
									<br />
SendMessage(hList,LVM_INSERTITEM,0,(LPARAM)&LvItem);// Send to the Listview<br />
ImageList_AddIcon(hSmall, hIcon);<br />
if(directory==true)<br />
{<br />
   size_t pos = ListviewFolder.find_last_of("\\"); <br />
   ListviewFolder=ListviewFolder.substr(pos+1,ListviewFolder.length());<br />
   MultiByteToWideChar(CP_ACP,MB_PRECOMPOSED,ListviewFolder.c_str(),(int)(ListviewFolder.length() + 1),w_ListviewFolder,MAX_PATH);<br />
   LvItem.iSubItem=1; <br />
   LvItem.iImage=1;<br />
   LvItem.pszText=w_ListviewFolder;<br />
}else<br />
{<br />
 LvItem.iImage=0;<br />
 LvItem.iSubItem=1;<br />
 LvItem.pszText=w_onlyfilename;<br />
 }<br />
LvItem.mask = LVIF_TEXT|LVIF_IMAGE;<br />
SendMessage(hList,LVM_SETITEM,0,(LPARAM)&LvItem);<br />


I want to add three more things .

1)I want to display my first column's image on right side(right alingement)
2)for second column when it control goes in else part actually shown image in second column but it displays that image in fist column only display the text in second(Actually should display the fileicon and name) .
3) Now When i close this application I have written xml file . for First column it only image then how can i check the item?



"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India

AnswerRe: Listview image problem Pin
Naveen29-Mar-07 2:50
Naveen29-Mar-07 2:50 
GeneralRe: Listview image problem Pin
amitmistry_petlad 29-Mar-07 3:04
amitmistry_petlad 29-Mar-07 3:04 
GeneralRe: Listview image problem Pin
Naveen29-Mar-07 3:08
Naveen29-Mar-07 3:08 
QuestionPSN_WIZFINISH Notification Pin
Neeraj Sinha28-Mar-07 21:18
Neeraj Sinha28-Mar-07 21:18 
AnswerRe: PSN_WIZFINISH Notification Pin
_AnsHUMAN_ 28-Mar-07 21:30
_AnsHUMAN_ 28-Mar-07 21:30 
Questiongenerate unrepeated serials Pin
samira forooghi28-Mar-07 20:13
samira forooghi28-Mar-07 20:13 
AnswerRe: generate unrepeated serials Pin
Stephen Hewitt28-Mar-07 20:52
Stephen Hewitt28-Mar-07 20:52 
QuestionApplication is going slow after power failure Pin
Member 383163328-Mar-07 19:42
Member 383163328-Mar-07 19:42 
QuestionWin32_NetworkAdapterConfiguration Pin
deeps_cute28-Mar-07 19:27
deeps_cute28-Mar-07 19:27 
QuestionTab control Pin
prathuraj28-Mar-07 19:18
prathuraj28-Mar-07 19:18 
AnswerRe: Tab control Pin
Parthi_Appu28-Mar-07 19:25
Parthi_Appu28-Mar-07 19:25 
GeneralRe: Tab control Pin
prathuraj28-Mar-07 20:32
prathuraj28-Mar-07 20:32 
GeneralRe: Tab control Pin
Parthi_Appu28-Mar-07 20:36
Parthi_Appu28-Mar-07 20:36 
Questionopen with Pin
rushiraj.jhala28-Mar-07 18:51
rushiraj.jhala28-Mar-07 18:51 
AnswerRe: open with Pin
prasad_som28-Mar-07 19:09
prasad_som28-Mar-07 19:09 
AnswerRe: open with Pin
Paresh Chitte28-Mar-07 19:16
Paresh Chitte28-Mar-07 19:16 
AnswerRe: open with Pin
toxcct28-Mar-07 22:50
toxcct28-Mar-07 22:50 

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.