Click here to Skip to main content
16,014,662 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralChange mainframe menu on startup Pin
Ravi Bhavnani10-Sep-04 13:38
professionalRavi Bhavnani10-Sep-04 13:38 
GeneralRe: Change mainframe menu on startup Pin
Neville Franks11-Sep-04 12:35
Neville Franks11-Sep-04 12:35 
GeneralRe: Change mainframe menu on startup Pin
Ravi Bhavnani11-Sep-04 12:57
professionalRavi Bhavnani11-Sep-04 12:57 
GeneralCalling VC COM DLL from C++ Pin
Peter Weyzen10-Sep-04 11:36
Peter Weyzen10-Sep-04 11:36 
GeneralHighlight Selected Item in ListCtrl Pin
Grahamfff10-Sep-04 10:59
Grahamfff10-Sep-04 10:59 
GeneralRe: Highlight Selected Item in ListCtrl Pin
Ravi Bhavnani10-Sep-04 13:40
professionalRavi Bhavnani10-Sep-04 13:40 
GeneralRe: Highlight Selected Item in ListCtrl Pin
Grahamfff11-Sep-04 8:33
Grahamfff11-Sep-04 8:33 
GeneralRe: Highlight Selected Item in ListCtrl Pin
Grahamfff11-Sep-04 8:43
Grahamfff11-Sep-04 8:43 
I did also try and modify the CodeProject sample ListCtrlDemo as floows but no luck:-

void CListCtrlDemoDlg::OnItemSelect() <br />
{<br />
	// TODO: Add your control notification handler code here<br />
	UpdateData(TRUE);<br />
<br />
	// Select this item in the list control<br />
	int nCount = m_cListCtrl.GetItemCount();<br />
	if (m_nSelectItem >= nCount)<br />
	{<br />
		AfxMessageBox(_T("You entered an out of range index."));<br />
		m_nSelectItem = 0;<br />
	}<br />
	else<br />
	{<br />
		m_cListCtrl.EnsureVisible(m_nSelectItem, FALSE);<br />
		m_cListCtrl.SetItemState(m_nSelectItem, LVIS_SELECTED | LVIS_FOCUSED,   LVIS_SELECTED | LVIS_FOCUSED);<br />
	}<br />
	UpdateData(FALSE);<br />
<br />
}


grahamfff
GeneralRe: Highlight Selected Item in ListCtrl Pin
Tyrus18211-Sep-04 8:50
Tyrus18211-Sep-04 8:50 
GeneralRe: Highlight Selected Item in ListCtrl Pin
Grahamfff11-Sep-04 9:18
Grahamfff11-Sep-04 9:18 
GeneralRe: Highlight Selected Item in ListCtrl Pin
Tyrus18211-Sep-04 12:47
Tyrus18211-Sep-04 12:47 
GeneralRe: Highlight Selected Item in ListCtrl Pin
Grahamfff12-Sep-04 9:50
Grahamfff12-Sep-04 9:50 
GeneralHighlight Selected Item in ListCtrl Pin
Grahamfff10-Sep-04 10:59
Grahamfff10-Sep-04 10:59 
GeneralRe: Highlight Selected Item in ListCtrl Pin
Ravi Bhavnani10-Sep-04 13:40
professionalRavi Bhavnani10-Sep-04 13:40 
QuestionVC++ 6.0 compiler error with adding function with struct variable??? Pin
Vaclav10-Sep-04 9:55
Vaclav10-Sep-04 9:55 
AnswerRe: VC++ 6.0 compiler error with adding function with struct variable??? Pin
David Crow10-Sep-04 10:24
David Crow10-Sep-04 10:24 
GeneralOverride Daylight Saving in DT Props Pin
john john mackey10-Sep-04 9:55
john john mackey10-Sep-04 9:55 
GeneralRe: Override Daylight Saving in DT Props Pin
David Crow10-Sep-04 10:30
David Crow10-Sep-04 10:30 
GeneralRe: Override Daylight Saving in DT Props Pin
john john mackey10-Sep-04 11:03
john john mackey10-Sep-04 11:03 
GeneralRe: Override Daylight Saving in DT Props Pin
phil_mchugh11-Sep-04 8:09
phil_mchugh11-Sep-04 8:09 
GeneralRe: Override Daylight Saving in DT Props Pin
john john mackey17-Sep-04 9:40
john john mackey17-Sep-04 9:40 
GeneralRe: Override Daylight Saving in DT Props Pin
john john mackey17-Sep-04 9:41
john john mackey17-Sep-04 9:41 
GeneralDefault Menu Item Pin
sschilachi10-Sep-04 9:48
sschilachi10-Sep-04 9:48 
GeneralRe: Default Menu Item Pin
Branislav11-Sep-04 3:34
Branislav11-Sep-04 3:34 
GeneralRe: Default Menu Item Pin
sschilachi11-Sep-04 6:44
sschilachi11-Sep-04 6:44 

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.