Click here to Skip to main content
14,331,901 members

C / C++ / MFC

 
AnswerRe: C++ string assignment to struct Pin
Victor Nijegorodov18-Sep-19 20:30
memberVictor Nijegorodov18-Sep-19 20:30 
GeneralRe: C++ string assignment to struct Pin
Fotsing18-Sep-19 22:28
memberFotsing18-Sep-19 22:28 
AnswerRe: C++ string assignment to struct Pin
CPallini18-Sep-19 21:01
mveCPallini18-Sep-19 21:01 
QuestionMFC VC++ Pin
Member 1457555617-Sep-19 20:42
memberMember 1457555617-Sep-19 20:42 
AnswerRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 20:59
memberVictor Nijegorodov17-Sep-19 20:59 
GeneralRe: MFC VC++ Pin
Member 1457555617-Sep-19 21:06
memberMember 1457555617-Sep-19 21:06 
GeneralRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 21:43
memberVictor Nijegorodov17-Sep-19 21:43 
GeneralRe: MFC VC++ Pin
Member 1457555617-Sep-19 23:35
memberMember 1457555617-Sep-19 23:35 
Thanks for the reply.

I got this code snippet from an MFC tutorial website.

void CMyDlg::ResetListControl() {
	m_ListControl.DeleteAllItems();
	int iNbrOfColumns;
	CHeaderCtrl* pHeader = (CHeaderCtrl*)m_ListControl.GetDlgItem(0);/* <---- this line */
	if (pHeader) {
		iNbrOfColumns = pHeader->GetItemCount();
	}
	for (int i = iNbrOfColumns; i >= 0; i--) {
		m_ListControl.DeleteColumn(i);
	}
}


I know this code will reset all the Item and column in the list view control.
I want to get a deeper understanding in that specific line of code.
GeneralRe: MFC VC++ Pin
Victor Nijegorodov18-Sep-19 0:24
memberVictor Nijegorodov18-Sep-19 0:24 
AnswerRe: MFC VC++ Pin
CPallini17-Sep-19 21:12
mveCPallini17-Sep-19 21:12 
GeneralRe: MFC VC++ Pin
Member 1457555617-Sep-19 21:22
memberMember 1457555617-Sep-19 21:22 
GeneralRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 21:39
memberVictor Nijegorodov17-Sep-19 21:39 
GeneralRe: MFC VC++ Pin
CPallini17-Sep-19 21:55
mveCPallini17-Sep-19 21:55 
GeneralRe: MFC VC++ Pin
Member 1457555617-Sep-19 23:49
memberMember 1457555617-Sep-19 23:49 
GeneralRe: MFC VC++ Pin
CPallini18-Sep-19 0:39
mveCPallini18-Sep-19 0:39 
AnswerRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 21:47
memberVictor Nijegorodov17-Sep-19 21:47 
GeneralRe: MFC VC++ Pin
Stefan_Lang17-Sep-19 22:40
memberStefan_Lang17-Sep-19 22:40 
QuestionUnresolved extern "dwTlsIndex" exported function in dll Pin
ForNow17-Sep-19 2:41
memberForNow17-Sep-19 2:41 
AnswerRe: Unresolved extern "dwTlsIndex" exported function in dll Pin
CPallini17-Sep-19 3:19
mveCPallini17-Sep-19 3:19 
GeneralRe: Unresolved extern "dwTlsIndex" exported function in dll Pin
ForNow17-Sep-19 3:42
memberForNow17-Sep-19 3:42 
GeneralRe: Unresolved extern "dwTlsIndex" exported function in dll Changed DLLMAIN.CPP to DLLMAIN.C clean link Pin
ForNow17-Sep-19 8:02
memberForNow17-Sep-19 8:02 
Questionmanual kerning with winAPI Pin
Alexander Kindel15-Sep-19 21:38
memberAlexander Kindel15-Sep-19 21:38 
Questiontypedef for a function for different platforms Pin
ForNow13-Sep-19 3:29
memberForNow13-Sep-19 3:29 
AnswerRe: typedef for a function for different platforms Pin
Stefan_Lang13-Sep-19 3:58
memberStefan_Lang13-Sep-19 3:58 
GeneralRe: typedef for a function for different platforms Pin
ForNow13-Sep-19 4:36
memberForNow13-Sep-19 4:36 

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.