Click here to Skip to main content
15,912,294 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Determining length of Switch compare Pin
ForNow19-Sep-19 1:32
ForNow19-Sep-19 1:32 
AnswerRe: Determining length of Switch compare Pin
Richard MacCutchan18-Sep-19 20:55
mveRichard MacCutchan18-Sep-19 20:55 
GeneralRe: Determining length of Switch compare Pin
ForNow19-Sep-19 1:32
ForNow19-Sep-19 1:32 
AnswerRe: Determining length of Switch compare Pin
Stefan_Lang19-Sep-19 2:23
Stefan_Lang19-Sep-19 2:23 
GeneralRe: Determining length of Switch compare Pin
ForNow19-Sep-19 4:06
ForNow19-Sep-19 4:06 
AnswerRe: Determining length of Switch compare Pin
leon de boer19-Sep-19 4:38
leon de boer19-Sep-19 4:38 
GeneralRe: Determining length of Switch compare Pin
ForNow19-Sep-19 5:11
ForNow19-Sep-19 5:11 
GeneralRe: Determining length of Switch compare Pin
leon de boer28-Sep-19 14:57
leon de boer28-Sep-19 14:57 
QuestionC++ string assignment to struct Pin
Fotsing18-Sep-19 11:54
Fotsing18-Sep-19 11:54 
AnswerRe: C++ string assignment to struct Pin
Richard MacCutchan18-Sep-19 20:26
mveRichard MacCutchan18-Sep-19 20:26 
GeneralRe: C++ string assignment to struct Pin
Fotsing18-Sep-19 22:33
Fotsing18-Sep-19 22:33 
GeneralRe: C++ string assignment to struct Pin
Stefan_Lang19-Sep-19 2:12
Stefan_Lang19-Sep-19 2:12 
GeneralRe: C++ string assignment to struct Pin
Fotsing19-Sep-19 13:06
Fotsing19-Sep-19 13:06 
AnswerRe: C++ string assignment to struct Pin
Victor Nijegorodov18-Sep-19 20:30
Victor Nijegorodov18-Sep-19 20:30 
GeneralRe: C++ string assignment to struct Pin
Fotsing18-Sep-19 22:28
Fotsing18-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
Member 1457555617-Sep-19 20:42 
AnswerRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 20:59
Victor Nijegorodov17-Sep-19 20:59 
GeneralRe: MFC VC++ Pin
Member 1457555617-Sep-19 21:06
Member 1457555617-Sep-19 21:06 
GeneralRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 21:43
Victor Nijegorodov17-Sep-19 21:43 
GeneralRe: MFC VC++ Pin
Member 1457555617-Sep-19 23:35
Member 1457555617-Sep-19 23:35 
Thanks for the reply.

I got this code snippet from an MFC tutorial website.

C++
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
Victor 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
Member 1457555617-Sep-19 21:22 
GeneralRe: MFC VC++ Pin
Victor Nijegorodov17-Sep-19 21:39
Victor Nijegorodov17-Sep-19 21:39 

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.