Click here to Skip to main content
15,908,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CWnd::onkeydown Pin
De Nardis Andrea7-Oct-03 8:03
De Nardis Andrea7-Oct-03 8:03 
GeneralHowto declare a dynamic double Array Pin
AnTri7-Oct-03 4:41
AnTri7-Oct-03 4:41 
GeneralRe: Howto declare a dynamic double Array Pin
Steve S7-Oct-03 5:12
Steve S7-Oct-03 5:12 
GeneralRe: Howto declare a dynamic double Array Pin
De Nardis Andrea7-Oct-03 5:19
De Nardis Andrea7-Oct-03 5:19 
GeneralRe: Howto declare a dynamic double Array Pin
valikac7-Oct-03 5:56
valikac7-Oct-03 5:56 
GeneralText Control Pin
rawatvs7-Oct-03 3:53
rawatvs7-Oct-03 3:53 
GeneralRe: Text Control Pin
alex.barylski7-Oct-03 9:29
alex.barylski7-Oct-03 9:29 
GeneralCListCtrl problem Pin
jgauffin7-Oct-03 3:51
jgauffin7-Oct-03 3:51 
Hello

Im using a CListCtrl and the subitems arent shown when I use the code below.

If I put the code in OnInitialUpdate everything works. What's the problem?

void CLogAnalyzerView::OnUpdate(CView* /*pSender*/, LPARAM lHint, CObject* /*pHint*/)
{
	CListCtrl& lst = GetListCtrl();
	if (lHint == CLogAnalyzerDoc::VIEW_LOADDOC)
	{

		CMarkup& xml = GetDocument()->GetXml();
		xml.FindElem("/log");
		xml.IntoElem();
		while (xml.FindElem("session"))
		{
			int iItem = 0;
			while (xml.FindChildElem("entry"))
			{
				
				iItem = lst.InsertItem(LVIF_TEXT, lst.GetItemCount(), xml.GetChildAttrib("stamp"), 0, 0, 0, 0);
				if (!lst.SetItemText(iItem, 1, xml.GetChildAttrib("prio")))	TRACE("%d\n", GetLastError());
				lst.SetItemText(iItem, 2, xml.GetChildAttrib("t"));
				lst.SetItemText(iItem, 3, "baks");
				lst.SetItemText(iItem, 4, xml.GetChildAttrib("group"));
				lst.SetItemText(iItem, 5, xml.GetChildData());
			}
		}
	}
}

GeneralRe: CListCtrl problem Pin
David Crow7-Oct-03 4:00
David Crow7-Oct-03 4:00 
GeneralRe: CListCtrl problem Pin
jgauffin7-Oct-03 4:22
jgauffin7-Oct-03 4:22 
GeneralRe: CListCtrl problem Pin
vcplusplus7-Oct-03 5:11
vcplusplus7-Oct-03 5:11 
QuestionA safe system place for confidental data? Pin
Osborn7-Oct-03 3:43
Osborn7-Oct-03 3:43 
AnswerRe: A safe system place for confidental data? Pin
David Crow7-Oct-03 4:17
David Crow7-Oct-03 4:17 
AnswerRe: A safe system place for confidental data? Pin
Terry O'Nolley7-Oct-03 4:23
Terry O'Nolley7-Oct-03 4:23 
GeneralRe: A safe system place for confidental data? Pin
Osborn7-Oct-03 7:36
Osborn7-Oct-03 7:36 
AnswerRe: A safe system place for confidental data? Pin
JWood7-Oct-03 9:13
JWood7-Oct-03 9:13 
GeneralWeb browser control Pin
Anthony98877-Oct-03 3:33
Anthony98877-Oct-03 3:33 
QuestionMoveFileEx not always working? Pin
Kayembi7-Oct-03 3:20
Kayembi7-Oct-03 3:20 
AnswerRe: MoveFileEx not always working? Pin
David Crow7-Oct-03 3:55
David Crow7-Oct-03 3:55 
GeneralRe: MoveFileEx not always working? Pin
Kayembi7-Oct-03 6:02
Kayembi7-Oct-03 6:02 
GeneralRe: MoveFileEx not always working? Pin
David Crow7-Oct-03 6:15
David Crow7-Oct-03 6:15 
GeneralProgramm needs VC++ to run Pin
DarkMarine7-Oct-03 3:20
DarkMarine7-Oct-03 3:20 
GeneralRe: Programm needs VC++ to run Pin
vcplusplus7-Oct-03 3:48
vcplusplus7-Oct-03 3:48 
GeneralRe: Programm needs VC++ to run Pin
DarkMarine7-Oct-03 7:26
DarkMarine7-Oct-03 7:26 
GeneralRe: Programm needs VC++ to run Pin
vcplusplus7-Oct-03 7:55
vcplusplus7-Oct-03 7:55 

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.