Archived

This topic is now archived and is closed to further replies.

Etus

MFC problem - combo boxes

Recommended Posts

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

Share this post


Link to post
Share on other sites