Combobox may not be fully created at this point
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1358,6 +1358,9 @@ void MyPanel::OnChoiceButtons( wxCommandEvent &event )
|
|||||||
|
|
||||||
void MyPanel::OnCombo( wxCommandEvent &event )
|
void MyPanel::OnCombo( wxCommandEvent &event )
|
||||||
{
|
{
|
||||||
|
if (!m_combo)
|
||||||
|
return;
|
||||||
|
|
||||||
wxLogMessage(_T("EVT_COMBOBOX: item %d/%d (event/control), string \"%s\"/\"%s\""),
|
wxLogMessage(_T("EVT_COMBOBOX: item %d/%d (event/control), string \"%s\"/\"%s\""),
|
||||||
(int)event.GetInt(),
|
(int)event.GetInt(),
|
||||||
m_combo->GetSelection(),
|
m_combo->GetSelection(),
|
||||||
|
Reference in New Issue
Block a user