MFC problem - combo boxes

Started by
-1 comments, last by Etus 20 years, 7 months ago
Hi, I''m trying to access a combo box in my program but I keep getting the same crash over and over again, no matter what I try to do. When debugging the crash, it seems the crash is caused by this assert function:

ASSERT(::IsWindow(m_hWnd));
This is what I''m trying to do:

void CDemonsBrowserView::OnSelendokPrivateCombo() 
{
	// TODO: Add your control notification handler code here

	CComboBox* cbptr = (CComboBox*)GetDlgItem(COMBO_PRIVATE);	
	currIndex = cbptr->GetCurSel();
...
What am I doing wrong? - Etus

This topic is closed to new replies.

Advertisement