Click here to Skip to main content
15,907,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how do i find all "src" attributes from frame object of html document? Pin
Albert Holguin11-May-11 14:46
professionalAlbert Holguin11-May-11 14:46 
QuestionRe: how do i find all "src" attributes from frame object of html document? Pin
David Crow11-May-11 17:47
David Crow11-May-11 17:47 
JokeRe: how do i find all "src" attributes from frame object of html document? Pin
Code-o-mat11-May-11 21:08
Code-o-mat11-May-11 21:08 
AnswerRe: how do i find all "src" attributes from frame object of html document? Pin
«_Superman_»11-May-11 23:13
professional«_Superman_»11-May-11 23:13 
GeneralRe: how do i find all "src" attributes from frame object of html document? Pin
yogish29313-May-11 1:36
yogish29313-May-11 1:36 
GeneralRe: how do i find all "src" attributes from frame object of html document? Pin
«_Superman_»13-May-11 1:39
professional«_Superman_»13-May-11 1:39 
GeneralRe: how do i find all "src" attributes from frame object of html document? Pin
yogish29313-May-11 2:52
yogish29313-May-11 2:52 
QuestionLoad image from Resource Pin
john563210-May-11 21:48
john563210-May-11 21:48 
AnswerRe: Load image from Resource Pin
Groulien10-May-11 21:56
Groulien10-May-11 21:56 
GeneralRe: Load image from Resource Pin
john563210-May-11 22:56
john563210-May-11 22:56 
GeneralRe: Load image from Resource Pin
CPallini11-May-11 0:17
mveCPallini11-May-11 0:17 
GeneralRe: Load image from Resource Pin
Luc Pattyn11-May-11 0:52
sitebuilderLuc Pattyn11-May-11 0:52 
GeneralRe: Load image from Resource Pin
CPallini11-May-11 1:04
mveCPallini11-May-11 1:04 
AnswerRe: Load image from Resource Pin
CPallini11-May-11 0:19
mveCPallini11-May-11 0:19 
AnswerRe: Load image from Resource Pin
Mark Salsbery11-May-11 5:08
Mark Salsbery11-May-11 5:08 
QuestionMultiple Selection in ListView. Pin
Sameerkumar Namdeo10-May-11 21:34
Sameerkumar Namdeo10-May-11 21:34 
AnswerRe: Multiple Selection in ListView. Pin
Roger Broomfield11-May-11 1:10
Roger Broomfield11-May-11 1:10 
GeneralRe: Multiple Selection in ListView. Pin
Sameerkumar Namdeo11-May-11 1:20
Sameerkumar Namdeo11-May-11 1:20 
GeneralRe: Multiple Selection in ListView. Pin
Roger Broomfield11-May-11 1:42
Roger Broomfield11-May-11 1:42 
QuestionHow about the CPropertyPage OnOK ? [modified] Pin
wangningyu10-May-11 21:28
wangningyu10-May-11 21:28 
AnswerRe: How about the CPropertyPage OnOK ? Pin
Richard MacCutchan10-May-11 21:31
mveRichard MacCutchan10-May-11 21:31 
GeneralRe: How about the CPropertyPage OnOK ? Pin
wangningyu10-May-11 21:38
wangningyu10-May-11 21:38 
QuestionRe: How about the CPropertyPage OnOK ? Pin
Mark Salsbery11-May-11 5:17
Mark Salsbery11-May-11 5:17 
GeneralRe: How about the CPropertyPage OnOK ? Pin
David Crow11-May-11 6:07
David Crow11-May-11 6:07 
QuestionSDI and dialog communication Pin
lamrinraj10-May-11 18:33
lamrinraj10-May-11 18:33 
1. i have a SDI window application which open images
2. i have created a search dialog which reads excel as database and loads the datas into the listbox(listview) which resides on the same window.
3. upon user click over the list view content, the image get opened in the SDI window and i need to preserve the search results.

now i able to retrieve the item in the list box (list view) and send it to the Filebrowser() procedure....and opened the file using a global variable..

<br />
//CSearchDlg.cpp<br />
//implemented search dialog<br />
<br />
void SearchDlg::OnItemChanged(NMHDR* pNMHDR, LRESULT* pResult)<br />
{<br />
	NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;	<br />
	CString Coll = "";<br />
	LV_ITEM itemSelected;<br />
	int nSelected = lstCtrl.GetNextItem(-1,LVNI_SELECTED);<br />
<br />
	if(nSelected == -1) <br />
	{<br />
		AfxMessageBox("No more item selected");<br />
	}<br />
		TCHAR szTeamName[80];<br />
		itemSelected.iItem = nSelected;<br />
		itemSelected.iSubItem = 9;<br />
		itemSelected.mask = LVIF_PARAM | LVIF_TEXT;<br />
		itemSelected.pszText = szTeamName;<br />
		itemSelected.cchTextMax = 50;<br />
		lstCtrl.GetItem(&itemSelected);<br />
		<br />
		CString* pMessage = (CString*) itemSelected.lParam;<br />
		Coll+=szTeamName;		<br />
		Coll+="\\";<br />
		TCHAR temp[2] = "\\";<br />
		Coll.TrimRight(temp);<br />
		//AfxMessageBox(Coll+"\n");		<br />
		GetsubItems(Coll);<br />
		*pResult = 0;<br />
}<br />
<br />
<br />
void SearchDlg::GetsubItems(CString csItem)<br />
{<br />
	CString tem_drive = GetDriveName();<br />
	CString csFormAbsolutePath = "";	<br />
	csFormAbsolutePath = "Files\\" + csItem;	<br />
	ReturnPathToFileOpen(csFormAbsolutePath);<br />
}<br />

Here i enabled search dialog, according to the search criteria, it lists the results in the listview upon user clicks i need to open the image. here subitem name(usually file name)gives the filename. i want to open the file in the client area.


<br />
CSearchDlg ObjSearch;<br />
ObjSearch.DoModal();<br />


Here the Fileopen was implemented in CImageView.cpp
inside i get the filename with path using global variable, here i couldn't preserve the search results.

i want to know what wrong i did here and how to implement the same.

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.