Hi all,

How can I create a combo box on runtime ?

I've tried:
Code:
BOOL CMyDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	CComboBox ComboBox;

	ComboBox.Create( 0, CRect(10, 10, 100, 200), this, 0 );

                return TRUE;
}
It didn't work 8(


Many thanks for your help